summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Pont <seanpont@google.com>2020-06-16 18:18:20 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-16 18:18:20 +0000
commit423d36beba867fe01e2afd4add1ba98978801876 (patch)
treed42c6d048711c15191054064c1b3c033ace320e4
parent8cffaa65117227d60170fb8309f15cbe3d911d33 (diff)
parent9a70e1c9b4f8d91437421a7c8b471feb4a6ffdde (diff)
downloadQuickAccessWallet-423d36beba867fe01e2afd4add1ba98978801876.tar.gz
Remove systemExclusionZone when only 1 card shown am: 9a70e1c9b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/QuickAccessWallet/+/11883463 Change-Id: I9896bccefa4c9b3108205edf6850a356b9129741
-rw-r--r--src/com/android/systemui/plugin/globalactions/wallet/WalletCardCarousel.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/systemui/plugin/globalactions/wallet/WalletCardCarousel.java b/src/com/android/systemui/plugin/globalactions/wallet/WalletCardCarousel.java
index 10f2205..1a27acc 100644
--- a/src/com/android/systemui/plugin/globalactions/wallet/WalletCardCarousel.java
+++ b/src/com/android/systemui/plugin/globalactions/wallet/WalletCardCarousel.java
@@ -20,8 +20,6 @@ import android.annotation.NonNull;
import android.annotation.Nullable;
import android.content.Context;
import android.graphics.Rect;
-import android.os.Build.VERSION;
-import android.os.Build.VERSION_CODES;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.HapticFeedbackConstants;
@@ -136,7 +134,7 @@ class WalletCardCarousel extends RecyclerView {
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
int width = getWidth();
- if (VERSION.SDK_INT >= VERSION_CODES.Q) {
+ if (mWalletCardAdapter.getItemCount() > 1) {
// Whole carousel is opted out from system gesture.
mSystemGestureExclusionZone.set(0, 0, width, getHeight());
setSystemGestureExclusionRects(Collections.singletonList(mSystemGestureExclusionZone));