From 61bc63a6a4b4be7dcc142c5a78d77a4fe126c8de Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Fri, 5 Jun 2020 12:17:16 -0700 Subject: [PATCH] Disabled app icon Visuals Bug: 154855908 Test: Manual Change-Id: I58c75ed51426ceb4a09b608ee77636c803955025 --- .../launcher3/appprediction/PredictionRowView.java | 4 +++- res/layout/all_apps.xml | 1 + res/values/attrs.xml | 2 ++ res/values/styles.xml | 14 ++++++++++++++ src/com/android/launcher3/FastBitmapDrawable.java | 14 +++++++++----- .../launcher3/allapps/AllAppsContainerView.java | 8 ++++++-- .../launcher3/allapps/AllAppsGridAdapter.java | 5 +++-- src/com/android/launcher3/util/Themes.java | 11 +++++++++-- 8 files changed, 47 insertions(+), 12 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java index d4cc1298c6..44691d3bb0 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java @@ -31,6 +31,7 @@ import android.os.Build; import android.util.AttributeSet; import android.util.IntProperty; import android.util.Log; +import android.view.LayoutInflater; import android.view.View; import android.view.animation.Interpolator; import android.widget.LinearLayout; @@ -241,8 +242,9 @@ public class PredictionRowView extends LinearLayout implements while (getChildCount() > mNumPredictedAppsPerRow) { removeViewAt(0); } + LayoutInflater inflater = mLauncher.getAppsView().getLayoutInflater(); while (getChildCount() < mNumPredictedAppsPerRow) { - BubbleTextView icon = (BubbleTextView) mLauncher.getLayoutInflater().inflate( + BubbleTextView icon = (BubbleTextView) inflater.inflate( R.layout.all_apps_icon, this, false); icon.setOnClickListener(PREDICTION_CLICK_LISTENER); icon.setOnLongClickListener(ItemLongClickListener.INSTANCE_ALL_APPS); diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index a41fb9a000..67ec6641db 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -19,6 +19,7 @@ + @@ -44,6 +45,7 @@ + diff --git a/res/values/styles.xml b/res/values/styles.xml index e470c42459..a922183b42 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -34,6 +34,7 @@ #FFFFFFFF 46 #66FFFFFF + @style/AllAppsTheme #FFF #F1F3F4 #E0E0E0 @@ -54,6 +55,7 @@ ?android:attr/textColorSecondary #FF212121 ?android:attr/colorAccent + .36 false false @@ -67,6 +69,8 @@ + + + +