fix: Android 14/15 crash

This commit is contained in:
Pun Butrach
2025-11-23 00:34:44 +07:00
parent d36845897b
commit edfd0baad6
1639 changed files with 146874 additions and 93622 deletions
@@ -61,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
@@ -171,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
*/
@@ -259,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 **/