summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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