mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Adding suport for Private Space QsTile fulfillment.
Adding logic to unlock private space and scroll to the container after unlock event is received by Launcher. This change also moves pieces of Private Space Animation to different classes, in order to make it more robust. Bug: 289024009 Test: atest PrivateProfileManagerTest Flag: ACONFIG com.google.android.apps.nexuslauncher.inject_private_space_tile TEAMFOOD Change-Id: Ica2fbc00ff3516ed5aca7fbbfc0bd2aa036a4cee
This commit is contained in:
@@ -260,7 +260,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
mMainAdapterProvider = mSearchUiDelegate.createMainAdapterProvider();
|
||||
if (Flags.enablePrivateSpace()) {
|
||||
mPrivateSpaceHeaderViewController =
|
||||
new PrivateSpaceHeaderViewController(mPrivateProfileManager);
|
||||
new PrivateSpaceHeaderViewController(this, mPrivateProfileManager);
|
||||
}
|
||||
|
||||
mAH.set(AdapterHolder.MAIN, new AdapterHolder(AdapterHolder.MAIN,
|
||||
@@ -980,6 +980,11 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
return mWorkManager;
|
||||
}
|
||||
|
||||
/** Returns whether Private Profile has been setup. */
|
||||
public boolean hasPrivateProfile() {
|
||||
return mHasPrivateApps;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDeviceProfileChanged(DeviceProfile dp) {
|
||||
for (AdapterHolder holder : mAH) {
|
||||
|
||||
Reference in New Issue
Block a user