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 @@ + + + +