Skip to content

Commit

Permalink
Fix backport issues
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Sep 17, 2021
1 parent 0285370 commit 2ba9bb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
import io.github.muntashirakon.AppManager.details.AppDetailsActivity;
import io.github.muntashirakon.AppManager.intercept.IntentCompat;
import io.github.muntashirakon.AppManager.logs.Log;
import io.github.muntashirakon.AppManager.users.Users;
import io.github.muntashirakon.AppManager.types.ForegroundService;
import io.github.muntashirakon.AppManager.users.Users;
import io.github.muntashirakon.AppManager.utils.AppPref;
import io.github.muntashirakon.AppManager.utils.PackageUtils;
import io.github.muntashirakon.AppManager.utils.StoragePermission;
Expand Down Expand Up @@ -447,8 +447,7 @@ private void reinstall() {
if (AppPref.isRootOrAdbEnabled()) {
// User must be all
try {
PackageInstallerCompat.uninstall(model.getPackageName(),
UserHandleHidden.USER_ALL, false);
PackageInstallerCompat.uninstall(model.getPackageName(), Users.USER_ALL, false);
install();
} catch (Exception e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
import io.github.muntashirakon.AppManager.utils.UiThreadHandler;
import io.github.muntashirakon.AppManager.utils.Utils;
import io.github.muntashirakon.dialog.DialogTitleBuilder;
import io.github.muntashirakon.io.Path;
import io.github.muntashirakon.io.ProxyFile;

import static io.github.muntashirakon.AppManager.details.info.ListItem.LIST_ITEM_FLAG_MONOSPACE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import io.github.muntashirakon.AppManager.utils.LangUtils;
import io.github.muntashirakon.AppManager.utils.MultithreadedExecutor;
import io.github.muntashirakon.AppManager.utils.UIUtils;
import io.github.muntashirakon.AppManager.utils.Utils;

public class MainPreferences extends PreferenceFragmentCompat {
private static final List<Integer> THEME_CONST = Arrays.asList(
Expand All @@ -80,7 +81,6 @@ public class MainPreferences extends PreferenceFragmentCompat {
private String currentMode;
private MainPreferencesViewModel model;
private int threadCount;
private final ExecutorService executor = Executors.newFixedThreadPool(1);

@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
Expand Down

0 comments on commit 2ba9bb6

Please sign in to comment.