diff options
author | Veeti Paananen <veeti.paananen@rojekti.fi> | 2013-03-04 14:51:57 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-03-04 14:53:22 -0800 |
commit | 919296825af7c9028eac0f9c0be6d6c9fbda2184 (patch) | |
tree | d72459b9c890c35c8b5e82a1c9e431e3384984c8 /src | |
parent | 4b8d06f6be5c4ba2d069e69001f7032492df2e2c (diff) | |
download | packages_apps_trebuchet-919296825af7c9028eac0f9c0be6d6c9fbda2184.zip packages_apps_trebuchet-919296825af7c9028eac0f9c0be6d6c9fbda2184.tar.gz packages_apps_trebuchet-919296825af7c9028eac0f9c0be6d6c9fbda2184.tar.bz2 |
Fix overflow visibility logic
Change-Id: Id9235c6946a402841cbd8512b118daf8b1be3c49
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); |