Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 089a2c05 authored by Fan Zhang's avatar Fan Zhang
Browse files

Control logging using the right flag.

Test: manually ran settings app and monitored logcat
Change-Id: I918cb1f5f2e34356df26e4810fc0f690304f13a3
parent 58b4c329
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ public class SettingsDrawerActivity extends Activity {

    protected static final boolean DEBUG_TIMING = false;
    private static final String TAG = "SettingsDrawerActivity";
    private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);

    public static final String EXTRA_SHOW_MENU = "show_drawer_menu";

@@ -289,7 +290,7 @@ public class SettingsDrawerActivity extends Activity {

        for (int i = userHandles.size()-1; i >= 0; i--) {
            if (mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) {
                if (DEBUG_TIMING) {
                if (DEBUG) {
                    Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier());
                }
                userHandles.remove(i);