From bd07c054460bdf70325fef6b45af20fe431ebd8c Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 5 Apr 2024 11:19:17 -0700 Subject: [PATCH] Moving all configs from overrides.xml to config.xml > Removing some used configs > Moving ids to id.xml Bug: 330920490 Flag: None Test: Presubmit Change-Id: I86bd22db49a3980c55f5d42350a7c6368fa86d21 --- quickstep/res/values/config.xml | 12 ++++ quickstep/res/values/override.xml | 42 ----------- res/values/config.xml | 69 +------------------ res/values/id.xml | 43 ++++++++++++ .../launcher3/util/PackageManagerHelper.java | 17 ----- 5 files changed, 57 insertions(+), 126 deletions(-) delete mode 100644 quickstep/res/values/override.xml diff --git a/quickstep/res/values/config.xml b/quickstep/res/values/config.xml index e45d9fd095..31d40710bc 100644 --- a/quickstep/res/values/config.xml +++ b/quickstep/res/values/config.xml @@ -26,6 +26,18 @@ com.android.quickstep.QuickstepTestInformationHandler com.android.quickstep.util.SystemWindowManagerProxy com.android.launcher3.uioverrides.QuickstepWidgetHolder$QuickstepHolderFactory + com.android.quickstep.InstantAppResolverImpl + com.android.launcher3.appprediction.PredictionAppTracker + com.android.quickstep.QuickstepProcessInitializer + com.android.launcher3.model.QuickstepModelDelegate + com.android.launcher3.secondarydisplay.SecondaryDisplayPredictionsImpl + com.android.launcher3.taskbar.TaskbarModelCallbacksFactory + com.android.launcher3.taskbar.TaskbarViewCallbacksFactory + com.android.quickstep.LauncherRestoreEventLoggerImpl + + + + diff --git a/quickstep/res/values/override.xml b/quickstep/res/values/override.xml deleted file mode 100644 index cba1f5bcd0..0000000000 --- a/quickstep/res/values/override.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - com.android.quickstep.InstantAppResolverImpl - - com.android.launcher3.appprediction.PredictionAppTracker - - com.android.quickstep.QuickstepProcessInitializer - - com.android.launcher3.model.QuickstepModelDelegate - - - - - - com.android.launcher3.secondarydisplay.SecondaryDisplayPredictionsImpl - - com.android.launcher3.taskbar.TaskbarModelCallbacksFactory - - com.android.launcher3.taskbar.TaskbarViewCallbacksFactory - - - - com.android.quickstep.LauncherRestoreEventLoggerImpl - - diff --git a/res/values/config.xml b/res/values/config.xml index 048d6cc01e..599584b64b 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -17,38 +17,23 @@ false - 153 - @string/app_name - - market://search?c=apps - #Intent;action=android.intent.action.DELETE;launchFlags=0x10800000;end com.android.launcher3.settings.SettingsActivity$LauncherSettingsFragment - - - - - 50 - 750 750 - - - popup_container_iterate_children @@ -91,71 +76,27 @@ - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - 48 0 - - - true - 0.75 - 600 - 0.73 800 - 0.73 - 800 - - 0.8 - 250 - 0.75 200 400 @@ -217,9 +158,6 @@ - - - 10dp 40dp @@ -275,9 +213,6 @@ - - - 0.5 720 diff --git a/res/values/id.xml b/res/values/id.xml index 59813ad290..7bb9396d31 100644 --- a/res/values/id.xml +++ b/res/values/id.xml @@ -23,6 +23,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -53,4 +87,13 @@ + + + + + + + + + diff --git a/src/com/android/launcher3/util/PackageManagerHelper.java b/src/com/android/launcher3/util/PackageManagerHelper.java index b66b96a29d..316506ab4a 100644 --- a/src/com/android/launcher3/util/PackageManagerHelper.java +++ b/src/com/android/launcher3/util/PackageManagerHelper.java @@ -48,7 +48,6 @@ import com.android.launcher3.model.data.LauncherAppWidgetInfo; import com.android.launcher3.model.data.WorkspaceItemInfo; import com.android.launcher3.uioverrides.ApiWrapper; -import java.net.URISyntaxException; import java.util.List; import java.util.Objects; @@ -166,22 +165,6 @@ public class PackageManagerHelper { return (info.flags & ApplicationInfo.FLAG_SUSPENDED) != 0; } - /** - * Creates a new market search intent. - */ - public static Intent getMarketSearchIntent(Context context, String query) { - try { - Intent intent = Intent.parseUri(context.getString(R.string.market_search_intent), 0); - if (!TextUtils.isEmpty(query)) { - intent.setData( - intent.getData().buildUpon().appendQueryParameter("q", query).build()); - } - return intent; - } catch (URISyntaxException e) { - throw new RuntimeException(e); - } - } - /** * Starts the details activity for {@code info} */