From eaf7a955467a5d189b982ee436a8eefaa30e3006 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 29 Jul 2020 16:54:20 -0700 Subject: [PATCH] Changing minimum supported Launcher version to 26 Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da --- Android.mk | 6 +- AndroidManifest-common.xml | 18 --- AndroidManifest.xml | 2 +- .../QuickstepAppTransitionManagerImpl.java | 3 - res/animator-v23/discovery_bounce.xml | 43 ------- res/animator/discovery_bounce.xml | 40 ++++--- .../all_apps_bg_hand_fill.xml | 0 .../all_apps_bg_hand_fill_dark.xml | 0 .../ic_deepshortcut_placeholder.xml | 20 ---- res/drawable-v26/ic_launcher_home.xml | 21 ---- .../ic_block_shadow.xml | 0 res/drawable/ic_deepshortcut_placeholder.xml | 14 +-- res/drawable/ic_launcher_home.xml | 9 +- .../ic_remove_shadow.xml | 0 .../ic_setup_shadow.xml | 0 .../ic_uninstall_shadow.xml | 0 res/mipmap-hdpi/ic_launcher_home.png | Bin 236 -> 0 bytes res/mipmap-mdpi/ic_launcher_home.png | Bin 216 -> 0 bytes res/mipmap-xhdpi/ic_launcher_home.png | Bin 235 -> 0 bytes res/mipmap-xxhdpi/ic_launcher_home.png | Bin 266 -> 0 bytes .../styles.xml | 0 res/values-v22/styles.xml | 26 ---- res/values-v26/bools.xml | 23 ---- res/values-v26/styles.xml | 31 ----- res/values/bools.xml | 23 ---- res/values/colors.xml | 3 - res/values/drawables.xml | 21 ---- res/values/styles.xml | 16 +-- .../launcher3/AbstractFloatingView.java | 3 +- src/com/android/launcher3/CellLayout.java | 4 +- .../launcher3/InstallShortcutReceiver.java | 29 +---- src/com/android/launcher3/Launcher.java | 5 +- .../android/launcher3/LauncherAppState.java | 14 +-- .../android/launcher3/LauncherProvider.java | 1 - .../launcher3/MainProcessInitializer.java | 1 - src/com/android/launcher3/PagedView.java | 4 +- .../launcher3/SessionCommitReceiver.java | 111 +----------------- src/com/android/launcher3/Utilities.java | 24 ---- .../android/launcher3/dragndrop/DragView.java | 3 - .../android/launcher3/graphics/IconShape.java | 8 +- .../launcher3/model/PackageUpdatedTask.java | 10 +- .../android/launcher3/model/data/AppInfo.java | 3 +- .../launcher3/pm/InstallSessionHelper.java | 23 +++- .../pm/ShortcutConfigActivityInfo.java | 49 +++----- .../popup/PopupContainerWithArrow.java | 5 +- .../launcher3/settings/SettingsActivity.java | 9 -- .../launcher3/statemanager/StateManager.java | 5 +- .../AbstractStateChangeTouchController.java | 10 +- .../launcher3/util/PackageManagerHelper.java | 38 +----- .../launcher3/util/SystemUiController.java | 12 +- .../launcher3/views/FloatingIconView.java | 4 +- .../widget/LauncherAppWidgetHostView.java | 4 +- .../launcher3/widget/WidgetManagerHelper.java | 20 +--- .../dynamicui/WallpaperManagerCompat.java | 5 +- .../ui/widget/RequestPinItemTest.java | 4 - 55 files changed, 130 insertions(+), 597 deletions(-) delete mode 100644 res/animator-v23/discovery_bounce.xml rename res/{color-v24 => color}/all_apps_bg_hand_fill.xml (100%) rename res/{color-v24 => color}/all_apps_bg_hand_fill_dark.xml (100%) delete mode 100644 res/drawable-v26/ic_deepshortcut_placeholder.xml delete mode 100644 res/drawable-v26/ic_launcher_home.xml rename res/{drawable-v24 => drawable}/ic_block_shadow.xml (100%) rename res/{drawable-v24 => drawable}/ic_remove_shadow.xml (100%) rename res/{drawable-v24 => drawable}/ic_setup_shadow.xml (100%) rename res/{drawable-v24 => drawable}/ic_uninstall_shadow.xml (100%) delete mode 100644 res/mipmap-hdpi/ic_launcher_home.png delete mode 100644 res/mipmap-mdpi/ic_launcher_home.png delete mode 100644 res/mipmap-xhdpi/ic_launcher_home.png delete mode 100644 res/mipmap-xxhdpi/ic_launcher_home.png rename res/{values-night-v26 => values-night}/styles.xml (100%) delete mode 100644 res/values-v22/styles.xml delete mode 100644 res/values-v26/bools.xml delete mode 100644 res/values-v26/styles.xml delete mode 100644 res/values/bools.xml delete mode 100644 res/values/drawables.xml diff --git a/Android.mk b/Android.mk index 7805b32e8e..91ecccb1e4 100644 --- a/Android.mk +++ b/Android.mk @@ -48,7 +48,7 @@ LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PA LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java LOCAL_SDK_VERSION := current -LOCAL_MIN_SDK_VERSION := 21 +LOCAL_MIN_SDK_VERSION := 26 LOCAL_MODULE := Launcher3CommonDepsLib LOCAL_PRIVILEGED_MODULE := true LOCAL_MANIFEST_FILE := AndroidManifest-common.xml @@ -77,7 +77,7 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_PROGUARD_ENABLED := disabled LOCAL_SDK_VERSION := current -LOCAL_MIN_SDK_VERSION := 21 +LOCAL_MIN_SDK_VERSION := 26 LOCAL_PACKAGE_NAME := Launcher3 LOCAL_PRIVILEGED_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true @@ -108,7 +108,7 @@ LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_SDK_VERSION := current -LOCAL_MIN_SDK_VERSION := 21 +LOCAL_MIN_SDK_VERSION := 26 LOCAL_PACKAGE_NAME := Launcher3Go LOCAL_PRIVILEGED_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index 19a16e341a..97e3786a36 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -29,12 +29,6 @@ at compile time. Note that the components defined in AndroidManifest.xml are also required, with some minor changed based on the derivative app. --> - @@ -79,17 +73,6 @@ android:restoreAnyVersion="true" android:supportsRtl="true" > - - - - - - - diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4664c9315a..97bce9c1d7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -20,7 +20,7 @@ - + - - - - - - - - - diff --git a/res/animator/discovery_bounce.xml b/res/animator/discovery_bounce.xml index f02ebdbace..f5548537b1 100644 --- a/res/animator/discovery_bounce.xml +++ b/res/animator/discovery_bounce.xml @@ -16,20 +16,28 @@ ** limitations under the License. */ --> - - + - - + android:valueType="floatType"> + + + + + + + diff --git a/res/color-v24/all_apps_bg_hand_fill.xml b/res/color/all_apps_bg_hand_fill.xml similarity index 100% rename from res/color-v24/all_apps_bg_hand_fill.xml rename to res/color/all_apps_bg_hand_fill.xml diff --git a/res/color-v24/all_apps_bg_hand_fill_dark.xml b/res/color/all_apps_bg_hand_fill_dark.xml similarity index 100% rename from res/color-v24/all_apps_bg_hand_fill_dark.xml rename to res/color/all_apps_bg_hand_fill_dark.xml diff --git a/res/drawable-v26/ic_deepshortcut_placeholder.xml b/res/drawable-v26/ic_deepshortcut_placeholder.xml deleted file mode 100644 index 3fa85065bd..0000000000 --- a/res/drawable-v26/ic_deepshortcut_placeholder.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/res/drawable-v26/ic_launcher_home.xml b/res/drawable-v26/ic_launcher_home.xml deleted file mode 100644 index 7038775f35..0000000000 --- a/res/drawable-v26/ic_launcher_home.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/res/drawable-v24/ic_block_shadow.xml b/res/drawable/ic_block_shadow.xml similarity index 100% rename from res/drawable-v24/ic_block_shadow.xml rename to res/drawable/ic_block_shadow.xml diff --git a/res/drawable/ic_deepshortcut_placeholder.xml b/res/drawable/ic_deepshortcut_placeholder.xml index 85a9694501..3fa85065bd 100644 --- a/res/drawable/ic_deepshortcut_placeholder.xml +++ b/res/drawable/ic_deepshortcut_placeholder.xml @@ -1,5 +1,6 @@ - - - - - + + + + diff --git a/res/drawable/ic_launcher_home.xml b/res/drawable/ic_launcher_home.xml index a6f2519954..7038775f35 100644 --- a/res/drawable/ic_launcher_home.xml +++ b/res/drawable/ic_launcher_home.xml @@ -13,6 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + + + + + diff --git a/res/drawable-v24/ic_remove_shadow.xml b/res/drawable/ic_remove_shadow.xml similarity index 100% rename from res/drawable-v24/ic_remove_shadow.xml rename to res/drawable/ic_remove_shadow.xml diff --git a/res/drawable-v24/ic_setup_shadow.xml b/res/drawable/ic_setup_shadow.xml similarity index 100% rename from res/drawable-v24/ic_setup_shadow.xml rename to res/drawable/ic_setup_shadow.xml diff --git a/res/drawable-v24/ic_uninstall_shadow.xml b/res/drawable/ic_uninstall_shadow.xml similarity index 100% rename from res/drawable-v24/ic_uninstall_shadow.xml rename to res/drawable/ic_uninstall_shadow.xml diff --git a/res/mipmap-hdpi/ic_launcher_home.png b/res/mipmap-hdpi/ic_launcher_home.png deleted file mode 100644 index d068d92361a06550fb1bcdf36fbc4bf56242d54e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~M1W6-E06|){rmU-|Ns9C14G(O z28NkujJG~Lkd;*dlwd3g@(X5gcy=QV$Z7I)aSW-r_4dL>z6Jx1mc(q=`~Q1QL!@ST zvx^@#{d2kXq4bSSI^01QuQhjd%Q~fAzm?V=urg{pU$2PM(daz_S{a5;E6(U}afk}8 z47;BZ=+{T*7@8zVPfLG>P=&IiV(vR zKTbn8<}=KmM{as0#4%>w<_hqP=C9KIV#aG9#kVxgf8%cH=Mf+Wdb;|#taD0e0sys( BO-=v+ diff --git a/res/mipmap-xhdpi/ic_launcher_home.png b/res/mipmap-xhdpi/ic_launcher_home.png deleted file mode 100644 index 8b2671bdd80f36d23f2f3d45842dfb78092feec3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 235 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeE3?v1%WpM*3i2$DvS0D`p`}gnv|Ns9P28Ohm z3=A{R7;k-gASrHabI#5x}f zrrE1+d3>F*Mn=YdO~U8??v%F<%Vx|LtWoD~o66j6_Tr_4iL*dP62FU^fCO{!!Tn9@ cJd9I<>I_fVT@aRE69aOyr>mdKI;Vst0EsD5ZU6uP diff --git a/res/mipmap-xxhdpi/ic_launcher_home.png b/res/mipmap-xxhdpi/ic_launcher_home.png deleted file mode 100644 index 43d8b7d886c9a928c666b0af551a1ab35c365aae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 266 zcmeAS@N?(olHy`uVBq!ia0vp^6F``S8Ays|{O<-*5&=FTu0R?H_V3^S|Ns9p3=C;A z85m}sG2Z(0Kvq@-P=c`}$S;_|;n|HeAZLN6i(^Oybs)2ELra~Vb3uF0>TroB60O9PkFq+(Sw=ihUjiyf9KJfCE$ zyPMIKX@$*_(+#(pT#hU#bue`n6A-xYec^LvEq*~k!LJttIo_Q0KfmWG6Ua-Ru6{1- HoD!M<4rE|^ diff --git a/res/values-night-v26/styles.xml b/res/values-night/styles.xml similarity index 100% rename from res/values-night-v26/styles.xml rename to res/values-night/styles.xml diff --git a/res/values-v22/styles.xml b/res/values-v22/styles.xml deleted file mode 100644 index f86db7a493..0000000000 --- a/res/values-v22/styles.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/values-v26/bools.xml b/res/values-v26/bools.xml deleted file mode 100644 index ad8c7a1865..0000000000 --- a/res/values-v26/bools.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - true - - false - \ No newline at end of file diff --git a/res/values-v26/styles.xml b/res/values-v26/styles.xml deleted file mode 100644 index d2f0802fa5..0000000000 --- a/res/values-v26/styles.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/res/values/bools.xml b/res/values/bools.xml deleted file mode 100644 index bc2c678874..0000000000 --- a/res/values/bools.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - false - - true - \ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index 043ad9a9d5..f56fbaaace 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -35,9 +35,6 @@ #E0E0E0 - #E5E5E5 - #9AA0A6 - #A0C2F9 #6DA1FF #FFFFFFFF diff --git a/res/values/drawables.xml b/res/values/drawables.xml deleted file mode 100644 index 9c57ec1214..0000000000 --- a/res/values/drawables.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - @drawable/ic_setting - @drawable/ic_remove_no_shadow - @drawable/ic_uninstall_no_shadow - @drawable/ic_block_no_shadow - \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 3b9532eeee..fd3d873635 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -143,7 +143,7 @@ @@ -171,14 +171,16 @@ ?attr/workspaceTextColor - + + - -