Merge "Fix big icon when dragging Toast by isolating the previous QL fix display to SEARCH_RESULT_APP_ROW" into udc-qpr-dev
This commit is contained in:
commit
28ae77df37
5 files changed
+37
-9
No files matched your search
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.android.launcher3.appprediction;
|
||||
|
||||
import static com.android.launcher3.BubbleTextView.DISPLAY_PREDICTION_ROW;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
@@ -189,7 +187,7 @@ public class PredictionRowView<T extends Context & ActivityContext>
|
||||
LayoutInflater inflater = mActivityContext.getAppsView().getLayoutInflater();
|
||||
while (getChildCount() < mNumPredictedAppsPerRow) {
|
||||
BubbleTextView icon = (BubbleTextView) inflater.inflate(
|
||||
R.layout.all_apps_icon, this, false);
|
||||
R.layout.all_apps_prediction_row_icon, this, false);
|
||||
icon.setOnClickListener(mActivityContext.getItemOnClickListener());
|
||||
icon.setOnLongClickListener(mActivityContext.getAllAppsItemLongClickListener());
|
||||
icon.setLongPressTimeoutFactor(1f);
|
||||
@@ -211,7 +209,6 @@ public class PredictionRowView<T extends Context & ActivityContext>
|
||||
icon.reset();
|
||||
if (predictionCount > i) {
|
||||
icon.setVisibility(View.VISIBLE);
|
||||
icon.setDisplay(DISPLAY_PREDICTION_ROW);
|
||||
icon.applyFromWorkspaceItem(mPredictedApps.get(i));
|
||||
} else {
|
||||
icon.setVisibility(predictionCount == 0 ? GONE : INVISIBLE);
|
||||
|
||||
Reference in new issue
Block a user