diff options
author | Kevin Vajk <kevin.vajk@gmail.com> | 2013-02-12 16:06:29 -0800 |
---|---|---|
committer | Kevin Vajk <kevin.vajk@gmail.com> | 2013-02-12 16:06:29 -0800 |
commit | e3b65dce8b24370fcbdebf2778c9f429f7db06cd (patch) | |
tree | d6fe679252a98607aeebf10030ccb107e5099449 | |
parent | bb74ce8b22f683522aae793ca11bcb957c2872f5 (diff) | |
download | android_packages_apps_Trebuchet-e3b65dce8b24370fcbdebf2778c9f429f7db06cd.tar.gz android_packages_apps_Trebuchet-e3b65dce8b24370fcbdebf2778c9f429f7db06cd.tar.bz2 android_packages_apps_Trebuchet-e3b65dce8b24370fcbdebf2778c9f429f7db06cd.zip |
Removed unnecessary typecast.jellybean
Don't need to call findViewById() again.
Null pointer check, consistent with the rest of the code.
Change-Id: I24c2871be27ef700b52b2f86d891c9929a7e0bed
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Launcher.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index da1778a01..7c4d3a479 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -953,11 +953,15 @@ public final class Launcher extends Activity // Hide the search divider if we are hiding search bar if (!mShowSearchBar && getCurrentOrientation() == Configuration.ORIENTATION_LANDSCAPE) { - ((View) findViewById(R.id.qsb_divider)).setVisibility(View.GONE); + if (mQsbDivider != null) { + mQsbDivider.setVisibility(View.GONE); + } } if (!mShowDockDivider) { - ((View) findViewById(R.id.dock_divider)).setVisibility(View.GONE); + if (mDockDivider != null) { + mDockDivider.setVisibility(View.GONE); + } } // Setup AppsCustomize |