Merge "Make sure we set the QSB bar on the SearchDropTargetBar" into ub-launcher3-burnaby

This commit is contained in:
Adam Cohen
2015-03-19 05:33:16 +00:00
committed by Android (Google) Code Review
+2 -5
View File
@@ -1441,10 +1441,7 @@ public class Launcher extends Activity
dragController.addDropTarget(mWorkspace);
if (mSearchDropTargetBar != null) {
mSearchDropTargetBar.setup(this, dragController);
if (getOrCreateQsbBar() == null) {
// Explicitly set it to null during initialization.
mSearchDropTargetBar.setQsbSearchBar(null);
}
mSearchDropTargetBar.setQsbSearchBar(getOrCreateQsbBar());
}
if (getResources().getBoolean(R.bool.debug_memory_enabled)) {
@@ -4089,7 +4086,7 @@ public class Launcher extends Activity
mSearchDropTargetBar.removeView(mQsb);
mQsb = null;
}
getOrCreateQsbBar();
mSearchDropTargetBar.setQsbSearchBar(getOrCreateQsbBar());
}
/**