mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview. Tested:Manual Change-Id: Id37fcc67840402f1f66d7646cd562c282a19e312
This commit is contained in:
@@ -289,6 +289,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
* @param modalness [0, 1] 0 being in context with other tasks, 1 being shown on its own.
|
||||
*/
|
||||
public void setModalness(float modalness) {
|
||||
if (mModalness == modalness) {
|
||||
return;
|
||||
}
|
||||
mModalness = modalness;
|
||||
mIconView.setAlpha(comp(modalness));
|
||||
if (mContextualChip != null) {
|
||||
@@ -298,7 +301,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
if (mContextualChipWrapper != null) {
|
||||
mContextualChipWrapper.setAlpha(comp(modalness));
|
||||
}
|
||||
|
||||
updateFooterVerticalOffset(mFooterVerticalOffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user