Merge "Use setQsbAlpha to update qsb alpha" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a7a8b5662
@@ -57,11 +57,12 @@ public class Hotseat extends CellLayout implements Insettable {
|
||||
public static final int ALPHA_CHANNEL_TASKBAR_ALIGNMENT = 0;
|
||||
public static final int ALPHA_CHANNEL_PREVIEW_RENDERER = 1;
|
||||
public static final int ALPHA_CHANNEL_TASKBAR_STASH = 2;
|
||||
public static final int ALPHA_CHANNEL_CHANNELS_COUNT = 3;
|
||||
public static final int ALPHA_CHANNEL_ASSISTANT_VISIBILITY = 3;
|
||||
public static final int ALPHA_CHANNEL_CHANNELS_COUNT = 4;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@IntDef({ALPHA_CHANNEL_TASKBAR_ALIGNMENT, ALPHA_CHANNEL_PREVIEW_RENDERER,
|
||||
ALPHA_CHANNEL_TASKBAR_STASH})
|
||||
ALPHA_CHANNEL_TASKBAR_STASH, ALPHA_CHANNEL_ASSISTANT_VISIBILITY})
|
||||
public @interface HotseatQsbAlphaId {
|
||||
}
|
||||
|
||||
|
||||
@@ -807,7 +807,7 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
}
|
||||
|
||||
public void onAssistantVisibilityChanged(float visibility) {
|
||||
mHotseat.getQsb().setAlpha(1f - visibility);
|
||||
mHotseat.setQsbAlpha(1f - visibility, Hotseat.ALPHA_CHANNEL_ASSISTANT_VISIBILITY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user