Merge "[Toast] Keep keyboard up for query builder tapping" into tm-dev am: 2c3de6efe0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18185504 Change-Id: I07fd37a6ba0191fe3603bf09ecc36d6454498a31 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -228,6 +228,8 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
|
|||||||
requestFocus();
|
requestFocus();
|
||||||
mgr.logger().sendToInteractionJankMonitor(
|
mgr.logger().sendToInteractionJankMonitor(
|
||||||
LAUNCHER_ALLAPPS_VERTICAL_SWIPE_BEGIN, this);
|
LAUNCHER_ALLAPPS_VERTICAL_SWIPE_BEGIN, this);
|
||||||
|
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
||||||
|
getApplicationWindowToken());
|
||||||
break;
|
break;
|
||||||
case SCROLL_STATE_IDLE:
|
case SCROLL_STATE_IDLE:
|
||||||
mgr.logger().sendToInteractionJankMonitor(
|
mgr.logger().sendToInteractionJankMonitor(
|
||||||
@@ -243,8 +245,6 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
|
|||||||
&& mEmptySearchBackground != null && mEmptySearchBackground.getAlpha() > 0) {
|
&& mEmptySearchBackground != null && mEmptySearchBackground.getAlpha() > 0) {
|
||||||
mEmptySearchBackground.setHotspot(e.getX(), e.getY());
|
mEmptySearchBackground.setHotspot(e.getX(), e.getY());
|
||||||
}
|
}
|
||||||
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
|
||||||
getApplicationWindowToken());
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ package com.android.launcher3.allapps;
|
|||||||
|
|
||||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_PERSONAL_TAB;
|
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_PERSONAL_TAB;
|
||||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_WORK_TAB;
|
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_WORK_TAB;
|
||||||
|
import static com.android.launcher3.util.UiThreadHelper.hideKeyboardAsync;
|
||||||
|
|
||||||
import android.animation.Animator;
|
import android.animation.Animator;
|
||||||
import android.animation.AnimatorListenerAdapter;
|
import android.animation.AnimatorListenerAdapter;
|
||||||
@@ -458,6 +459,8 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
|||||||
mActivityContext.getStatsLogManager().logger()
|
mActivityContext.getStatsLogManager().logger()
|
||||||
.log(LAUNCHER_ALLAPPS_TAP_ON_PERSONAL_TAB);
|
.log(LAUNCHER_ALLAPPS_TAP_ON_PERSONAL_TAB);
|
||||||
}
|
}
|
||||||
|
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
||||||
|
getApplicationWindowToken());
|
||||||
});
|
});
|
||||||
findViewById(R.id.tab_work)
|
findViewById(R.id.tab_work)
|
||||||
.setOnClickListener((View view) -> {
|
.setOnClickListener((View view) -> {
|
||||||
@@ -465,6 +468,8 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
|||||||
mActivityContext.getStatsLogManager().logger()
|
mActivityContext.getStatsLogManager().logger()
|
||||||
.log(LAUNCHER_ALLAPPS_TAP_ON_WORK_TAB);
|
.log(LAUNCHER_ALLAPPS_TAP_ON_WORK_TAB);
|
||||||
}
|
}
|
||||||
|
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
||||||
|
getApplicationWindowToken());
|
||||||
});
|
});
|
||||||
setDeviceManagementResources();
|
setDeviceManagementResources();
|
||||||
onActivePageChanged(mViewPager.getNextPage());
|
onActivePageChanged(mViewPager.getNextPage());
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import static android.view.HapticFeedbackConstants.CLOCK_TICK;
|
|||||||
|
|
||||||
import static androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE;
|
import static androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE;
|
||||||
|
|
||||||
|
import static com.android.launcher3.util.UiThreadHelper.hideKeyboardAsync;
|
||||||
|
|
||||||
import android.animation.ObjectAnimator;
|
import android.animation.ObjectAnimator;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
@@ -283,6 +285,9 @@ public class RecyclerViewFastScroller extends View {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
|
hideKeyboardAsync(ActivityContext.lookupContext(getContext()),
|
||||||
|
getApplicationWindowToken());
|
||||||
|
break;
|
||||||
case MotionEvent.ACTION_CANCEL:
|
case MotionEvent.ACTION_CANCEL:
|
||||||
mRv.onFastScrollCompleted();
|
mRv.onFastScrollCompleted();
|
||||||
mTouchOffsetY = 0;
|
mTouchOffsetY = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user