From 22369c1997b49027680eeed56406d6c59084bc01 Mon Sep 17 00:00:00 2001 From: oasisfeng Date: Tue, 23 Jun 2020 15:26:38 +0800 Subject: [PATCH] REMOVE: Featured app "IceBox" temporarily, until its suspension is lifted by Google Play Store. --- .../featured/FeaturedListViewModel.java | 18 ------------------ .../drawable-nodpi/ic_launcher_icebox.webp | Bin 4998 -> 0 bytes mobile/src/main/res/values-zh/strings.xml | 2 -- mobile/src/main/res/values/strings.xml | 2 -- 4 files changed, 22 deletions(-) delete mode 100644 mobile/src/main/res/drawable-nodpi/ic_launcher_icebox.webp diff --git a/mobile/src/main/java/com/oasisfeng/island/featured/FeaturedListViewModel.java b/mobile/src/main/java/com/oasisfeng/island/featured/FeaturedListViewModel.java index 217cc86be..9d4f3e15c 100644 --- a/mobile/src/main/java/com/oasisfeng/island/featured/FeaturedListViewModel.java +++ b/mobile/src/main/java/com/oasisfeng/island/featured/FeaturedListViewModel.java @@ -5,13 +5,11 @@ import android.content.Context; import android.content.Intent; import android.net.Uri; -import android.os.Handler; import android.provider.Settings; import androidx.annotation.DrawableRes; import androidx.annotation.StringRes; import androidx.lifecycle.AndroidViewModel; -import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LiveData; import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; @@ -30,9 +28,6 @@ import com.oasisfeng.island.Config; import com.oasisfeng.island.adb.AdbSecure; import com.oasisfeng.island.analytics.Analytics; -import com.oasisfeng.island.controller.IslandAppClones; -import com.oasisfeng.island.data.IslandAppInfo; -import com.oasisfeng.island.data.IslandAppListProvider; import com.oasisfeng.island.data.LiveUserRestriction; import com.oasisfeng.island.files.IslandFiles; import com.oasisfeng.island.mobile.BR; @@ -70,7 +65,6 @@ public class FeaturedListViewModel extends AndroidViewModel { private static final String SCOPE_TAG_PREFIX_FEATURED = "featured_"; - private static final String PACKAGE_ICEBOX = "com.catchingnow.icebox"; private static final boolean SHOW_ALL = false; // For debugging purpose public NonNullMutableLiveData visible = new NonNullMutableLiveData<>(Boolean.FALSE); @@ -144,18 +138,6 @@ R.string.featured_adb_secure_description,0, map(adb_secure, enabled -> enabled ? addFeaturedApp(R.string.featured_saf_enhancer_title, R.string.featured_saf_enhancer_description, R.drawable.ic_launcher_saf_enhancer, "app.gwo.safenhancer.lite", "app.gwo.safenhancer"); - if (! addFeaturedApp(R.string.featured_icebox_title, R.string.featured_icebox_description, R.drawable.ic_launcher_icebox, PACKAGE_ICEBOX) - && Users.hasProfile() && IslandAppListProvider.getInstance(context).get(PACKAGE_ICEBOX, Users.profile) == null) { - new Handler().postDelayed(() -> { // Dirty workaround due to IslandAppListProvider updated after onResume() - if (activity.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED) - && IslandAppListProvider.getInstance(activity).get(PACKAGE_ICEBOX, Users.profile) != null) - update(context); - }, 1_000); - final IslandAppInfo icebox_in_mainland = IslandAppListProvider.getInstance(context).get(PACKAGE_ICEBOX, Users.owner); - if (icebox_in_mainland != null) addFeature(app, "icebox", R.string.featured_icebox_title, R.string.featured_icebox_description, - R.drawable.ic_launcher_icebox, R.string.action_clone, c -> IslandAppClones.cloneApp(context/* must be activity */, icebox_in_mainland)); - } - addFeaturedApp(R.string.featured_appops_title, R.string.featured_appops_description, R.drawable.ic_launcher_appops, "rikka.appops", "rikka.appops.pro"); diff --git a/mobile/src/main/res/drawable-nodpi/ic_launcher_icebox.webp b/mobile/src/main/res/drawable-nodpi/ic_launcher_icebox.webp deleted file mode 100644 index 581a5bc22d5820051e1db3dc593a923891e22746..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4998 zcmV;16M5`XNk&F~6952LMM6+kP&il$0000G0001w0055w06|PpNT&z@009|=ZQHgn zNOpH4`XBkU|I@ADE*YI99DzX6{^BDOx_XSWPHOm7c^Xi6H0qKjq0|;}e6A^>^j-5CoOt!?T0K zqut$N7=gzLfki9#MxBYF>&Z`h;Y$W8l_W)8o}F#ppWfW705Slebz38W=wXC?&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dcfTM61Hzt1ef{u>~ZJ%H6gN3Dfr-k-qy^0`3@rR}G(QV*%y zY^~mX6)WOx_g*Of4_KW;l*OFxW3V=(9B$>c-=77<3sJuyjjnL5a2(54qydDNc|YXo zAg0J=R<}&j@TY(OknOb8RALt1_%y1SIKtXF_(a(io9X%TMp-?o9K;;wnV->8AGfM-$%t z6!kJ?dE~G7jvf&p4oJx}GBrO8CI`#GPlx;~soO^IQI%!H*N?jK{DJNE在屏幕关闭后,自动冻结选定的应用,除非它们仍然在工作中。 SAF 增强器 Lite 为不兼容存储访问框架,但支持通过外部相机应用拍照的应用(如“微信”)提供跨界的图片访问能力。 - 冰箱 - 轻松愉悦的应用冻结和启动体验。请确保在冰箱的工作模式设置中选择“炼妖壶”。将其克隆至壶中界即可管理和启动壶中界的应用。 App Ops App Ops 可选择性剥夺指定应用的部分能力,即使授予了相关权限。 创建一个独立的壶中界 diff --git a/mobile/src/main/res/values/strings.xml b/mobile/src/main/res/values/strings.xml index db6567682..72b6d2137 100644 --- a/mobile/src/main/res/values/strings.xml +++ b/mobile/src/main/res/values/strings.xml @@ -30,8 +30,6 @@ Automatically freeze selected apps if not in active use, after screen goes off. SAF Enhancer Lite Enable cross-border image access for app not supporting \"Storage Access Framework\", provided it supports photo capture with external camera app. - Ice Box - Easy and pleasant app launching experience for frozen apps. Be sure to select \"Island\" as Work Mode in the settings of Ice Box. To manage apps in Island, clone Ice Box and launch it in Island. App Ops App Ops is a powerful tool to selectively block some data access capabilities of apps gracefully, even if related permission is granted by user. Setup a separate Island