AppListFragment: allow MIUI users to ignore and continue installation

This commit is contained in:
Peter Cai 2018-10-01 15:16:34 +08:00
parent 6ecc6bed02
commit 4114479d8f
No known key found for this signature in database
GPG key ID: 71F5FB4E4F3FD54F
3 changed files with 4 additions and 0 deletions

View file

@ -225,6 +225,8 @@ public class AppListFragment extends Fragment {
new AlertDialog.Builder(getContext())
.setMessage(R.string.miui_cannot_clone)
.setPositiveButton(android.R.string.ok, null)
.setNegativeButton(R.string.continue_anyway, (diag, button) ->
installOrUninstall(mSelectedApp, true))
.show();
} else {
installOrUninstall(mSelectedApp, true);

View file

@ -71,4 +71,5 @@
<!-- MIUI -->
<string name="miui_cannot_clone">目前无法在 MIUI 上克隆非系统应用。请先克隆您的系统应用商店 (如 <b>Play Store</b>) 然后从克隆的应用商店中安装应用</string>
<string name="continue_anyway">无视并继续</string>
</resources>

View file

@ -75,4 +75,5 @@
<!-- MIUI -->
<string name="miui_cannot_clone">Cloning non-system apps to another profile is currently not possible on MIUI. Please clone your system\'s app store (e.g. <b>Play Store</b>) into the other profile and then install apps from there.</string>
<string name="continue_anyway">Continue anyway</string>
</resources>