fix: Disable material expressive folder expansion animations

This commit is contained in:
Pun Butrach committed 2026-01-10 20:51:07 +07:00
1 parent 0ff9636c38
commit 9b90822395
2258 files changed
+165176 -78078

No files matched your search

@@ -14,6 +14,7 @@
package com.android.systemui.plugins.qs;
import android.graphics.Rect;
import android.view.View;
import androidx.annotation.FloatRange;
@@ -35,7 +36,7 @@ public interface QS extends FragmentBase {
String ACTION = "com.android.systemui.action.PLUGIN_QS";
int VERSION = 15;
int VERSION = 16;
String TAG = "QS";
@@ -89,8 +90,45 @@ public interface QS extends FragmentBase {
*/
int getHeightDiff();
/**
* Returns the header view that contains QQS. This might return null (or throw) if there's no
* actual header view.
*/
View getHeader();
/**
* Returns the top of the header view that contains QQS wrt to the container view
*/
int getHeaderTop();
/**
* Returns the bottom of the header view that contains QQS wrt to the container view
*/
int getHeaderBottom();
/**
* Returns the left bound of the header view that contains QQS wrt to the container view
*/
int getHeaderLeft();
/**
* Fills outBounds with the bounds of the header view (container of QQS) on the screen
*/
void getHeaderBoundsOnScreen(Rect outBounds);
/**
* Returns the height of the header view that contains QQS. It defaults to bottom - top.
*/
default int getHeaderHeight() {
return getHeaderBottom() - getHeaderTop();
}
/**
* Returns whether the header view that contains QQS is shown on screen (similar semantics to
* View.isShown).
*/
boolean isHeaderShown();
default void setHasNotifications(boolean hasNotifications) {
}
@@ -165,6 +203,12 @@ public interface QS extends FragmentBase {
*/
void setIsNotificationPanelFullWidth(boolean isFullWidth);
default void setPanelExpanded(boolean panelExpanded) {}
default void setQqsHeightListener(QqsHeightListener listener) {}
default void setQSContentPaddingBottom(int padding) {}
/**
* Callback for when QSPanel container is scrolled
*/
@@ -180,4 +224,10 @@ public interface QS extends FragmentBase {
void onQsHeightChanged();
}
@ProvidesInterface(version = HeightListener.VERSION)
interface QqsHeightListener {
int VERSION = 1;
void onQqsHeightChanged();
}
}