[packages/apps/Launcher3] MultiWindow:no use shade background

This commit is contained in:
Firefly
2015-11-23 10:40:36 +08:00
committed by cjp
parent 02113d5f38
commit 813be4d90c
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,6 @@
android:id="@+id/launcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/workspace_bg"
android:fitsSystemWindows="true">
<com.android.launcher3.DragLayer

View File

@ -3302,7 +3302,8 @@ public class Launcher extends Activity
}
private void setWorkspaceBackground(boolean workspace) {
mLauncherView.setBackground(workspace ?
boolean isMultiMode = (0 != Settings.System.getInt(getContentResolver(), "multi_window_config", 0));
mLauncherView.setBackground(workspace&&!isMultiMode ?
mWorkspaceBackgroundDrawable : null);
}