More fixes

This commit is contained in:
Suphon Thanakornpakapong
2021-10-08 12:14:19 +07:00
parent a463238dbd
commit 554e466864
9 changed files with 18 additions and 13 deletions

View File

@@ -42,5 +42,6 @@ android {
}
dependencies {
compileOnly fileTree(dir: new File(rootProject.projectDir, 'prebuilts/libs'), include: 'wm_shell-aidls.jar')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

View File

@@ -16,7 +16,6 @@
package com.android.systemui.shared.system;
import android.annotation.IntDef;
import android.os.Build;
import android.view.View;
@@ -47,14 +46,6 @@ public final class InteractionJankMonitorWrapper {
public static final int CUJ_APP_LAUNCH_FROM_WIDGET =
InteractionJankMonitor.CUJ_LAUNCHER_APP_LAUNCH_FROM_WIDGET;
@IntDef({
CUJ_APP_LAUNCH_FROM_RECENTS,
CUJ_APP_LAUNCH_FROM_ICON,
CUJ_APP_CLOSE_TO_HOME,
CUJ_APP_CLOSE_TO_PIP,
CUJ_QUICK_SWITCH,
CUJ_APP_LAUNCH_FROM_WIDGET,
})
@Retention(RetentionPolicy.SOURCE)
public @interface CujType {
}

View File

@@ -172,7 +172,7 @@ android {
java.srcDirs = ['src', 'src_plugins']
manifest.srcFile 'AndroidManifest-common.xml'
proto {
srcDirs = ['protos/', 'protos_overrides/', 'quickstep/proto_overrides/']
srcDirs = ['protos/', 'quickstep/protos_overrides/']
}
}
@@ -263,6 +263,7 @@ dependencies {
// Recents lib dependency
withQuickstepImplementation project(':SystemUIShared')
implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'wm_shell-aidls.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')

View File

@@ -17,6 +17,8 @@
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<application>
<meta-data
android:name="preloaded_fonts"
@@ -54,5 +56,13 @@
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
</service>
<meta-data
android:name="xyz.paphonb.quickstepswitcher.minSdk"
android:value="31" />
<meta-data
android:name="xyz.paphonb.quickstepswitcher.maxSdk"
android:value="31" />
</application>
</manifest>

View File

@@ -9,7 +9,7 @@ import com.android.launcher3.allapps.WorkAdapterProvider
import com.android.launcher3.model.data.AppInfo
import com.android.launcher3.util.ItemInfoMatcher
class LawnchairAlphabeticalAppsList(context: Context, appsStore: AllAppsStore, adapterProvider: WorkAdapterProvider) :
class LawnchairAlphabeticalAppsList(context: Context, appsStore: AllAppsStore, adapterProvider: WorkAdapterProvider?) :
AlphabeticalAppsList(context, appsStore, adapterProvider) {
private val hiddenApps = PreferenceManager.getInstance(context).hiddenAppSet

Binary file not shown.

View File

@@ -630,6 +630,8 @@ public class DeviceProfile {
allAppsIconDrawablePaddingPx = iconDrawablePaddingOriginalPx;
autoResizeAllAppsCells();
} else {
allAppsIconSizePx = iconSizePx;
allAppsIconTextSizePx = iconTextSizePx;
allAppsIconDrawablePaddingPx = iconDrawablePaddingPx;
allAppsCellHeightPx = getCellSize().y;
}

View File

@@ -474,7 +474,7 @@ public class LauncherPreviewRenderer extends ContextWrapper
}
// Add first page QSB
if (FeatureFlags.QSB_ON_FIRST_SCREEN) {
if (FeatureFlags.topQsbOnFirstScreenEnabled(mContext)) {
View qsb = mHomeElementInflater.inflate(
R.layout.search_container_workspace, mWorkspace, false);
CellLayout.LayoutParams lp =