Snap for 6981746 from 2f4654ee04 to sc-release
Change-Id: Ia89b4663fffce8b14facc369d710cfd5a3373134
This commit is contained in:
commit
9c90fed68e
4 files changed
+15
-7
No files matched your search
@@ -16,6 +16,9 @@
|
||||
|
||||
package com.android.quickstep.views;
|
||||
|
||||
import static android.view.WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS;
|
||||
import static android.view.WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS;
|
||||
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_QUICKSTEP_LIVE_TILE;
|
||||
import static com.android.systemui.shared.system.WindowManagerWrapper.WINDOWING_MODE_FULLSCREEN;
|
||||
|
||||
@@ -250,10 +253,10 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc
|
||||
public int getSysUiStatusNavFlags() {
|
||||
if (mThumbnailData != null) {
|
||||
int flags = 0;
|
||||
flags |= (mThumbnailData.systemUiVisibility & SYSTEM_UI_FLAG_LIGHT_STATUS_BAR) != 0
|
||||
flags |= (mThumbnailData.appearance & APPEARANCE_LIGHT_STATUS_BARS) != 0
|
||||
? SystemUiController.FLAG_LIGHT_STATUS
|
||||
: SystemUiController.FLAG_DARK_STATUS;
|
||||
flags |= (mThumbnailData.systemUiVisibility & SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR) != 0
|
||||
flags |= (mThumbnailData.appearance & APPEARANCE_LIGHT_NAVIGATION_BARS) != 0
|
||||
? SystemUiController.FLAG_LIGHT_NAV
|
||||
: SystemUiController.FLAG_DARK_NAV;
|
||||
return flags;
|
||||
|
||||
@@ -323,6 +323,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
* @param modalness [0, 1] 0 being in context with other tasks, 1 being shown on its own.
|
||||
*/
|
||||
public void setModalness(float modalness) {
|
||||
if (mModalness == modalness) {
|
||||
return;
|
||||
}
|
||||
mModalness = modalness;
|
||||
mIconView.setAlpha(comp(modalness));
|
||||
if (mContextualChip != null) {
|
||||
|
||||
@@ -132,7 +132,7 @@ public class AlphabeticalAppsList implements AllAppsStore.OnUpdateListener {
|
||||
* Returns the child adapter item with IME launch focus.
|
||||
*/
|
||||
public AdapterItem getFocusedChild() {
|
||||
if (mAdapterItems.size() == 0 || getFocusedChildIndex() != -1) {
|
||||
if (mAdapterItems.size() == 0 || getFocusedChildIndex() == -1) {
|
||||
return null;
|
||||
}
|
||||
return mAdapterItems.get(getFocusedChildIndex());
|
||||
|
||||
@@ -150,12 +150,14 @@ public class SearchResultWidget extends RelativeLayout implements
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
mLongPressHelper.onTouchEvent(ev);
|
||||
mClickDetector.onTouchEvent(ev);
|
||||
if (ev.getAction() == MotionEvent.ACTION_UP && !mLongPressHelper.hasPerformedLongPress()) {
|
||||
handleSelection(SearchTargetEvent.CHILD_SELECT);
|
||||
}
|
||||
return super.onInterceptTouchEvent(ev);
|
||||
return mLongPressHelper.hasPerformedLongPress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
mLongPressHelper.onTouchEvent(ev);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancelLongPress() {
|
||||
|
||||
Reference in new issue
Block a user