feat: Add option to clear home screen in settings (#6125)

Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
Abhishek Sharma
2025-12-20 03:26:30 +05:30
committed by Pun Butrach
parent 9898749619
commit 5f3a03f4fb
1577 changed files with 112563 additions and 80248 deletions

View File

@@ -21,8 +21,4 @@ package com.android.systemui.plugins
interface BcSmartspaceConfigPlugin {
/** Gets default date/weather disabled status. */
val isDefaultDateWeatherDisabled: Boolean
/** Gets if Smartspace should use ViewPager2 */
val isViewPager2Enabled: Boolean
/** Gets if card swipe event should be logged */
val isSwipeEventLoggingEnabled: Boolean
}

View File

@@ -24,7 +24,6 @@ import android.app.smartspace.uitemplatedata.TapAction;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Parcelable;
import android.util.Log;
import android.view.View;
@@ -85,10 +84,6 @@ public interface BcSmartspaceDataPlugin extends Plugin {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
default SmartspaceView getLargeClockView(ViewGroup parent) {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/**
* As the smartspace view becomes available, allow listeners to receive an event.
*/
@@ -107,15 +102,6 @@ public interface BcSmartspaceDataPlugin extends Plugin {
void onSmartspaceTargetsUpdated(List<? extends Parcelable> targets);
}
/**
* Sets {@link BcSmartspaceConfigPlugin}.
*
* TODO: b/259566300 - Remove once isViewPager2Enabled is fully rolled out
*/
default void registerConfigProvider(BcSmartspaceConfigPlugin configProvider) {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/** View to which this plugin can be registered, in order to get updates. */
interface SmartspaceView {
void registerDataProvider(BcSmartspaceDataPlugin plugin);
@@ -137,9 +123,6 @@ public interface BcSmartspaceDataPlugin extends Plugin {
*/
void setUiSurface(String uiSurface);
/** Set background handler to make binder calls. */
void setBgHandler(Handler bgHandler);
/**
* Range [0.0 - 1.0] when transitioning from Lockscreen to/from AOD
*/
@@ -217,13 +200,6 @@ public interface BcSmartspaceDataPlugin extends Plugin {
default int getCurrentCardTopPadding() {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/**
* Set the horizontal paddings for applicable children inside the SmartspaceView.
*/
default void setHorizontalPaddings(int horizontalPadding) {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
}
/** Interface for launching Intents, which can differ on the lockscreen */