Move LauncherApplication's state and code to LauncherAppState.
This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
This commit is contained in:
1 parent
ecf33e4819
commit
cc8befac35
23 files changed
+230
-175
No files matched your search
@@ -736,7 +736,7 @@ public class DragLayer extends FrameLayout implements ViewGroup.OnHierarchyChang
|
||||
protected int getChildDrawingOrder(int childCount, int i) {
|
||||
// TODO: We have turned off this custom drawing order because it now effects touch
|
||||
// dispatch order. We need to sort that issue out and then decide how to go about this.
|
||||
if (true || LauncherApplication.isScreenLandscape(getContext()) ||
|
||||
if (true || LauncherAppState.isScreenLandscape(getContext()) ||
|
||||
mWorkspaceIndex == -1 || mQsbIndex == -1 ||
|
||||
mLauncher.getWorkspace().isDrawingBackgroundGradient()) {
|
||||
return i;
|
||||
@@ -779,7 +779,7 @@ public class DragLayer extends FrameLayout implements ViewGroup.OnHierarchyChang
|
||||
protected void dispatchDraw(Canvas canvas) {
|
||||
super.dispatchDraw(canvas);
|
||||
|
||||
if (mInScrollArea && !LauncherApplication.isScreenLarge()) {
|
||||
if (mInScrollArea && !LauncherAppState.isScreenLarge()) {
|
||||
Workspace workspace = mLauncher.getWorkspace();
|
||||
int width = workspace.getWidth();
|
||||
Rect childRect = new Rect();
|
||||
|
||||
Reference in new issue
Block a user