[CD Taskbar] Make External Taskbar 3-Button & Persistent
The gesture handle still persists in conjunction with the three buttons. In addition to being forced into three button mode, the taskbar on external displays needs to never enter transient mode. More info and before/after images on bug. Flag: com.android.window.flags.enable_taskbar_connected_displays Bug: 399718805 Test: Manual Change-Id: Iff5c297c8ac4823fa24e7a8e4becd0447224cac0
This commit is contained in:
1 parent
ebdcf7ba8a
commit
c166a373a9
28 files changed
+104
-132
No files matched your search
@@ -23,6 +23,7 @@ import android.view.LayoutInflater;
|
||||
|
||||
import com.android.launcher3.popup.SystemShortcut;
|
||||
import com.android.launcher3.util.BaseContext;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
import com.android.launcher3.util.Themes;
|
||||
import com.android.quickstep.SystemUiProxy;
|
||||
|
||||
@@ -32,10 +33,20 @@ public abstract class BaseTaskbarContext extends BaseContext
|
||||
implements SystemShortcut.BubbleActivityStarter {
|
||||
|
||||
protected final LayoutInflater mLayoutInflater;
|
||||
private final boolean mIsPrimaryDisplay;
|
||||
|
||||
public BaseTaskbarContext(Context windowContext) {
|
||||
public BaseTaskbarContext(Context windowContext, boolean isPrimaryDisplay) {
|
||||
super(windowContext, Themes.getActivityThemeRes(windowContext));
|
||||
mLayoutInflater = LayoutInflater.from(this).cloneInContext(this);
|
||||
mIsPrimaryDisplay = isPrimaryDisplay;
|
||||
}
|
||||
|
||||
public boolean isTransientTaskbar() {
|
||||
return DisplayController.isTransientTaskbar(this) && mIsPrimaryDisplay;
|
||||
}
|
||||
|
||||
public boolean isPrimaryDisplay() {
|
||||
return mIsPrimaryDisplay;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user