fix: Disable material expressive folder expansion animations

This commit is contained in:
Pun Butrach
2025-11-28 20:00:03 +07:00
parent 0ff9636c38
commit 9b90822395
2258 changed files with 165178 additions and 78080 deletions
@@ -24,6 +24,7 @@ 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;
@@ -60,21 +61,17 @@ public interface BcSmartspaceDataPlugin extends Plugin {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/** Register a SmartspaceEventNotifier. */
default void registerSmartspaceEventNotifier(SmartspaceEventNotifier notifier) {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/** Sets the event dispatcher for smart space targets. */
void setEventDispatcher(SmartspaceEventDispatcher eventDispatcher);
/** Push a SmartspaceTargetEvent to the SmartspaceEventNotifier. */
default void notifySmartspaceEvent(SmartspaceTargetEvent event) {
throw new UnsupportedOperationException("Not implemented by " + getClass());
}
/**
* Overrides how Intents/PendingIntents gets launched. Mostly to support auth from
* the lockscreen.
*/
void setIntentStarter(IntentStarter intentStarter);
/** Allows for notifying the SmartspaceSession of SmartspaceTargetEvents. */
interface SmartspaceEventNotifier {
/** Pushes a given SmartspaceTargetEvent to the SmartspaceSession. */
void notifySmartspaceEvent(SmartspaceTargetEvent event);
}
/** Returns the smartspace event notifier */
SmartspaceEventNotifier getEventNotifier();
/**
* Create a view to be shown within the parent. Do not add the view, as the parent
@@ -84,6 +81,10 @@ 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.
*/
@@ -102,6 +103,15 @@ 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);
@@ -123,6 +133,9 @@ 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
*/
@@ -154,12 +167,6 @@ public interface BcSmartspaceDataPlugin extends Plugin {
*/
default void setKeyguardBypassEnabled(boolean enabled) {}
/**
* Overrides how Intents/PendingIntents gets launched. Mostly to support auth from
* the lockscreen.
*/
void setIntentStarter(IntentStarter intentStarter);
/**
* When on the lockscreen, use the FalsingManager to help detect errant touches
*/
@@ -200,6 +207,13 @@ 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 */
@@ -235,6 +249,19 @@ public interface BcSmartspaceDataPlugin extends Plugin {
void startPendingIntent(View v, PendingIntent pi, boolean showOnLockscreen);
}
/** SmartspaceEventDispatcher which also controls controlling intent launching behavior */
interface SmartspaceEventNotifier extends SmartspaceEventDispatcher {
/** The intent starter for controlling activity launches */
@Nullable IntentStarter getIntentStarter();
}
/** Allows for notifying the SmartspaceSession of SmartspaceTargetEvents. */
interface SmartspaceEventDispatcher {
/** Pushes a given SmartspaceTargetEvent to the SmartspaceSession. */
void notifySmartspaceEvent(SmartspaceTargetEvent event);
}
/** Interface for delegating time updates */
interface TimeChangedDelegate {
/** Register the callback to be called when time is updated **/