diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Launcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index b1c1425..8563cd1 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -3456,8 +3456,8 @@ public final class Launcher extends Activity ActivityInfo defaultLauncher = getPackageManager().resolveActivity(launcherIntent, PackageManager.MATCH_DEFAULT_ONLY).activityInfo; // Hide preferences if not on CyanogenMod or not default launcher // (in which case preferences don't get shown in system settings) - boolean preferencesVisible = !getPackageManager().hasSystemFeature("com.cyanogenmod.android") || - !defaultLauncher.packageName.equals(getClass().getPackage().getName()); + boolean preferencesVisible = getPackageManager().hasSystemFeature("com.cyanogenmod.android") || + defaultLauncher.packageName.equals(getClass().getPackage().getName()); boolean disabled = ViewConfiguration.get(this).hasPermanentMenuKey() || !preferencesVisible; overflowMenuButton.setVisibility(disabled ? View.GONE : View.VISIBLE); |