|
@@ -22,7 +22,6 @@ import android.app.Activity
|
|
import android.content.Context
|
|
import android.content.Context
|
|
import android.content.Intent
|
|
import android.content.Intent
|
|
import android.content.res.Resources
|
|
import android.content.res.Resources
|
|
-import android.os.Build
|
|
|
|
import com.nextcloud.client.account.CurrentAccountProvider
|
|
import com.nextcloud.client.account.CurrentAccountProvider
|
|
import com.nextcloud.client.preferences.AppPreferences
|
|
import com.nextcloud.client.preferences.AppPreferences
|
|
import com.owncloud.android.BuildConfig
|
|
import com.owncloud.android.BuildConfig
|
|
@@ -38,7 +37,7 @@ internal class OnboardingServiceImpl constructor(
|
|
) : OnboardingService {
|
|
) : OnboardingService {
|
|
|
|
|
|
private companion object {
|
|
private companion object {
|
|
- const val ITEM_VERSION_CODE = 30185300
|
|
|
|
|
|
+ const val ITEM_VERSION_CODE = 99999999
|
|
}
|
|
}
|
|
|
|
|
|
private val notSeenYet: Boolean
|
|
private val notSeenYet: Boolean
|
|
@@ -47,21 +46,8 @@ internal class OnboardingServiceImpl constructor(
|
|
}
|
|
}
|
|
|
|
|
|
override val whatsNew: Array<FeatureItem>
|
|
override val whatsNew: Array<FeatureItem>
|
|
- get() = if (!isFirstRun && notSeenYet && Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
|
|
- arrayOf(
|
|
|
|
- FeatureItem(
|
|
|
|
- R.drawable.folder_alert_outline, R.string.whats_new_storage_sdk30_title,
|
|
|
|
- R.string
|
|
|
|
- .whats_new_storage_sdk30_content,
|
|
|
|
- true, false
|
|
|
|
- ),
|
|
|
|
- FeatureItem(
|
|
|
|
- R.drawable.folder_alert_outline, R.string.whats_new_storage_sdk30_title,
|
|
|
|
- R.string
|
|
|
|
- .whats_new_storage_sdk30_content_page2,
|
|
|
|
- true, false
|
|
|
|
- )
|
|
|
|
- )
|
|
|
|
|
|
+ get() = if (!isFirstRun && notSeenYet) {
|
|
|
|
+ emptyArray()
|
|
} else {
|
|
} else {
|
|
emptyArray()
|
|
emptyArray()
|
|
}
|
|
}
|