diff --git a/build.gradle b/build.gradle index e296455..0987266 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { } } -final String ANDROID_TOP = "${rootDir}/../../.." +final String ANDROID_TOP = "${rootDir}" final String FRAMEWORK_PREBUILTS_DIR = "${ANDROID_TOP}/prebuilts/framework_intermediates/" apply plugin: 'com.android.application' @@ -56,7 +56,7 @@ android { testApplicationId 'com.android.launcher3.tests' } - withQuickstep { + /*withQuickstep { dimension "recents" minSdkVersion 28 @@ -66,7 +66,7 @@ android { dimension "recents" minSdkVersion 28 - } + }*/ withoutQuickstep { dimension "recents" @@ -125,7 +125,7 @@ android { java.srcDirs = ['src_ui_overrides'] } - withQuickstep { + /*withQuickstep { res.srcDirs = ['quickstep/res', 'quickstep/recents_ui_overrides/res'] java.srcDirs = ['quickstep/src', 'quickstep/recents_ui_overrides/src'] manifest.srcFile "quickstep/AndroidManifest.xml" @@ -135,7 +135,7 @@ android { res.srcDirs = ['quickstep/res', 'go/quickstep/res'] java.srcDirs = ['quickstep/src', 'go/quickstep/src'] manifest.srcFile "quickstep/AndroidManifest.xml" - } + }*/ } } @@ -151,16 +151,16 @@ dependencies { implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}" implementation "androidx.preference:preference:${ANDROID_X_VERSION}" implementation project(':IconLoader') - implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'launcher_protos.jar') + implementation fileTree(dir: "${ANDROID_TOP}/libs", include: 'launcher_protos.jar') // Recents lib dependency - withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 'sysui_shared.jar') + //withQuickstepImplementation fileTree(dir: "${ANDROID_TOP}/libs", include: 'sysui_shared.jar') // Recents lib dependency for Go - withQuickstepIconRecentsImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 'sysui_shared.jar') + //withQuickstepIconRecentsImplementation fileTree(dir: "${ANDROID_TOP}/libs", include: 'sysui_shared.jar') - // Required for AOSP to compile. This is already included in the sysui_shared.jar - withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_core.jar') + // Required for AOSP to compile. This is already included in ANDROID_TOP sysui_shared.jar + withoutQuickstepImplementation fileTree(dir: "${ANDROID_TOP}/libs", include: 'plugin_core.jar') testImplementation 'junit:junit:4.12' androidTestImplementation "org.mockito:mockito-core:1.9.5" diff --git a/gradle.properties b/gradle.properties index 5b90f08..1ccaee9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,4 +10,4 @@ PROTOBUF_CLASS_PATH=com.google.protobuf:protobuf-gradle-plugin:0.8.6 PROTOBUF_DEPENDENCY=com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7 BUILD_TOOLS_VERSION=28.0.3 -COMPILE_SDK=android-Q \ No newline at end of file +COMPILE_SDK=android-29 \ No newline at end of file diff --git a/iconloaderlib/build.gradle b/iconloaderlib/build.gradle index 8a4d2b7..9b769e8 100644 --- a/iconloaderlib/build.gradle +++ b/iconloaderlib/build.gradle @@ -37,3 +37,7 @@ android { dependencies { implementation "androidx.core:core:${ANDROID_X_VERSION}" } + +repositories { + google() +} diff --git a/iconloaderlib/src_full_lib/com/android/launcher3/icons/SimpleIconCache.java b/iconloaderlib/src_full_lib/com/android/launcher3/icons/SimpleIconCache.java index 1337975..6f62318 100644 --- a/iconloaderlib/src_full_lib/com/android/launcher3/icons/SimpleIconCache.java +++ b/iconloaderlib/src_full_lib/com/android/launcher3/icons/SimpleIconCache.java @@ -66,12 +66,12 @@ public class SimpleIconCache extends BaseIconCache { @Override protected long getSerialNumberForUser(UserHandle user) { synchronized (mUserSerialMap) { - int index = mUserSerialMap.indexOfKey(user.getIdentifier()); + int index = mUserSerialMap.indexOfKey(user.hashCode()); if (index >= 0) { return mUserSerialMap.valueAt(index); } long serial = mUserManager.getSerialNumberForUser(user); - mUserSerialMap.put(user.getIdentifier(), serial); + mUserSerialMap.put(user.hashCode(), serial); return serial; } } @@ -84,7 +84,7 @@ public class SimpleIconCache extends BaseIconCache { @Override protected boolean isInstantApp(ApplicationInfo info) { - return info.isInstantApp(); + return mContext.getPackageManager().isInstantApp(info.packageName); } @Override diff --git a/libs/launcher_protos.jar b/libs/launcher_protos.jar new file mode 100644 index 0000000..c043936 Binary files /dev/null and b/libs/launcher_protos.jar differ diff --git a/libs/plugin_core.jar b/libs/plugin_core.jar new file mode 100644 index 0000000..dd27f86 Binary files /dev/null and b/libs/plugin_core.jar differ diff --git a/res/values-v29/styles.xml b/res/values-v29/styles.xml index 7590594..9aceab0 100644 --- a/res/values-v29/styles.xml +++ b/res/values-v29/styles.xml @@ -19,7 +19,7 @@ -