Disable wallpaper in -1 space in GEL and hack around window animations
Bug: 12978354 Change-Id: I8b5602ae434a9151b40d41defb891db1ad78ce81
This commit is contained in:
1 parent
497ecbd311
commit
3a8a8f7c23
2 files changed
+6
-5
No files matched your search
@@ -1011,7 +1011,7 @@ public class Launcher extends Activity
|
|||||||
// It is also poassible that onShow will instead be called slightly after first layout
|
// It is also poassible that onShow will instead be called slightly after first layout
|
||||||
// if PagedView#setRestorePage was set to the custom content page in onCreate().
|
// if PagedView#setRestorePage was set to the custom content page in onCreate().
|
||||||
if (mWorkspace.isOnOrMovingToCustomContent()) {
|
if (mWorkspace.isOnOrMovingToCustomContent()) {
|
||||||
mWorkspace.getCustomContentCallbacks().onShow();
|
mWorkspace.getCustomContentCallbacks().onShow(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mWorkspace.updateInteractionForState();
|
mWorkspace.updateInteractionForState();
|
||||||
@@ -1055,8 +1055,9 @@ public class Launcher extends Activity
|
|||||||
}
|
}
|
||||||
|
|
||||||
public interface CustomContentCallbacks {
|
public interface CustomContentCallbacks {
|
||||||
// Custom content is completely shown
|
// Custom content is completely shown. {@code fromResume} indicates whether this was caused
|
||||||
public void onShow();
|
// by a onResume or by scrolling otherwise.
|
||||||
|
public void onShow(boolean fromResume);
|
||||||
|
|
||||||
// Custom content is completely hidden
|
// Custom content is completely hidden
|
||||||
public void onHide();
|
public void onHide();
|
||||||
@@ -2927,7 +2928,7 @@ public class Launcher extends Activity
|
|||||||
mWorkspaceBackgroundDrawable : null);
|
mWorkspaceBackgroundDrawable : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateWallpaperVisibility(boolean visible) {
|
protected void changeWallpaperVisiblity(boolean visible) {
|
||||||
int wpflags = visible ? WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER : 0;
|
int wpflags = visible ? WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER : 0;
|
||||||
int curflags = getWindow().getAttributes().flags
|
int curflags = getWindow().getAttributes().flags
|
||||||
& WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
|
& WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
|
||||||
|
|||||||
@@ -1215,7 +1215,7 @@ public class Workspace extends SmoothPagedView
|
|||||||
if (hasCustomContent() && getNextPage() == 0 && !mCustomContentShowing) {
|
if (hasCustomContent() && getNextPage() == 0 && !mCustomContentShowing) {
|
||||||
mCustomContentShowing = true;
|
mCustomContentShowing = true;
|
||||||
if (mCustomContentCallbacks != null) {
|
if (mCustomContentCallbacks != null) {
|
||||||
mCustomContentCallbacks.onShow();
|
mCustomContentCallbacks.onShow(false);
|
||||||
mCustomContentShowTime = System.currentTimeMillis();
|
mCustomContentShowTime = System.currentTimeMillis();
|
||||||
mLauncher.updateVoiceButtonProxyVisible(false);
|
mLauncher.updateVoiceButtonProxyVisible(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user