summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Vajk <kevin.vajk@gmail.com>2013-02-13 00:06:29 (GMT)
committerKevin Vajk <kevin.vajk@gmail.com>2013-02-13 00:06:29 (GMT)
commite3b65dce8b24370fcbdebf2778c9f429f7db06cd (patch)
treed6fe679252a98607aeebf10030ccb107e5099449
parentbb74ce8b22f683522aae793ca11bcb957c2872f5 (diff)
downloadandroid_packages_apps_Trebuchet-jellybean.zip
android_packages_apps_Trebuchet-jellybean.tar.gz
android_packages_apps_Trebuchet-jellybean.tar.bz2
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.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java
index da1778a..7c4d3a4 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