[app] Workaround R8 bug (#710)

This commit is contained in:
tehcneko 2021-05-31 19:03:57 +08:00 committed by GitHub
parent 3803884f49
commit df71d64e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -30,12 +30,6 @@
android:name="android.permission.WRITE_SECURE_SETTINGS" android:name="android.permission.WRITE_SECURE_SETTINGS"
tools:ignore="ProtectedPermissions" /> tools:ignore="ProtectedPermissions" />
<queries>
<intent>
<action android:name="android.intent.action.MAIN" />
</intent>
</queries>
<application <application
android:name=".App" android:name=".App"
android:allowBackup="true" android:allowBackup="true"

View File

@ -452,9 +452,7 @@ public class ModulesFragment extends BaseFragment implements ModuleUtil.ModuleLi
if (!isPick) { if (!isPick) {
holder.root.setAlpha(moduleUtil.isModuleEnabled(item.packageName) ? 1.0f : .5f); holder.root.setAlpha(moduleUtil.isModuleEnabled(item.packageName) ? 1.0f : .5f);
holder.itemView.setOnClickListener(v -> { holder.itemView.setOnClickListener(v -> getNavController().navigate(ModulesFragmentDirections.actionModulesFragmentToAppListFragment(item.packageName, item.userId)));
getNavController().navigate(ModulesFragmentDirections.actionModulesFragmentToAppListFragment(item.packageName, item.userId));
});
holder.itemView.setOnLongClickListener(v -> { holder.itemView.setOnLongClickListener(v -> {
selectedModule = item; selectedModule = item;
return false; return false;

View File

@ -17,7 +17,7 @@
~ Copyright (C) 2021 LSPosed Contributors ~ Copyright (C) 2021 LSPosed Contributors
--> -->
<resources> <resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@drawable/afs_*">
<string name="app_name" translatable="false">LSPosed</string> <string name="app_name" translatable="false">LSPosed</string>
<string name="about_source" translatable="false">https://github.com/LSPosed/LSPosed/</string> <string name="about_source" translatable="false">https://github.com/LSPosed/LSPosed/</string>
</resources> </resources>