QuickSwitch Compat Q to U (#3948)
Initial support quickstep, Android versions from Q to U, ensuring a smooth and efficient user experience. Enjoy effortless navigation and swift app switching on your Android device with QuickSwitch's compatibility across the Q, R, S, T, and U. Co-authored-by: Goooler <wangzongler@gmail.com> Co-authored-by: 无言 <57122860+liu-wanshun@users.noreply.github.com>
This commit is contained in:
111 files changed
+4547
-602
No files matched your search
@@ -1,17 +1,40 @@
|
||||
package app.lawnchair.compatlib;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.content.Intent;
|
||||
import android.os.RemoteException;
|
||||
import android.view.IRecentsAnimationRunner;
|
||||
|
||||
import android.window.TaskSnapshot;
|
||||
import androidx.annotation.Nullable;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class ActivityManagerCompat {
|
||||
|
||||
public abstract void startRecentsActivity(Intent intent, long eventTime, RecentsAnimationRunnerStub runner) throws RemoteException;
|
||||
public static final int NUM_RECENT_ACTIVITIES_REQUEST = 3;
|
||||
|
||||
public abstract ActivityManager.RunningTaskInfo getRunningTask(boolean filterOnlyVisibleRecents);
|
||||
public abstract void invalidateHomeTaskSnapshot(final Activity homeActivity);
|
||||
|
||||
/**
|
||||
* Called only in S+ platform
|
||||
*
|
||||
* @param taskId
|
||||
* @param isLowResolution
|
||||
* @param takeSnapshotIfNeeded
|
||||
* @return
|
||||
*/
|
||||
@Nullable
|
||||
public TaskSnapshot getTaskSnapshot(
|
||||
int taskId, boolean isLowResolution, boolean takeSnapshotIfNeeded) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract void startRecentsActivity(
|
||||
Intent intent, long eventTime, RecentsAnimationRunnerCompat runnerCompat);
|
||||
|
||||
public abstract ActivityManager.RunningTaskInfo getRunningTask(
|
||||
boolean filterOnlyVisibleRecents);
|
||||
|
||||
public abstract List<ActivityManager.RecentTaskInfo> getRecentTasks(int numTasks, int userId);
|
||||
|
||||
public abstract ActivityManager.RunningTaskInfo[] getRunningTasks(
|
||||
boolean filterOnlyVisibleRecents);
|
||||
}
|
||||
Reference in new issue
Block a user