瀏覽代碼

Remove What's New screens for scoped storage

Not needed if we get the manage permission

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 年之前
父節點
當前提交
5eeb8c0343
共有 1 個文件被更改,包括 3 次插入17 次删除
  1. 3 17
      src/main/java/com/nextcloud/client/onboarding/OnboardingServiceImpl.kt

+ 3 - 17
src/main/java/com/nextcloud/client/onboarding/OnboardingServiceImpl.kt

@@ -22,7 +22,6 @@ import android.app.Activity
 import android.content.Context
 import android.content.Intent
 import android.content.res.Resources
-import android.os.Build
 import com.nextcloud.client.account.CurrentAccountProvider
 import com.nextcloud.client.preferences.AppPreferences
 import com.owncloud.android.BuildConfig
@@ -38,7 +37,7 @@ internal class OnboardingServiceImpl constructor(
 ) : OnboardingService {
 
     private companion object {
-        const val ITEM_VERSION_CODE = 30185300
+        const val ITEM_VERSION_CODE = 99999999
     }
 
     private val notSeenYet: Boolean
@@ -47,21 +46,8 @@ internal class OnboardingServiceImpl constructor(
         }
 
     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 {
             emptyArray()
         }