mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Fix black flash when splitting task
- Draw the thumbnail view and align with the thumbnail bounds instead of the whole task bounds with the icon - Defer animating the task list until after the animation completes Bug: 73118672 Test: Enter split screen Change-Id: Ie10c079cb22ae82f3c5974296462abae335ef5a8
This commit is contained in:
@@ -98,9 +98,12 @@ public abstract class BaseActivity extends Activity {
|
||||
mDPChangeListeners.add(listener);
|
||||
}
|
||||
|
||||
public void removeOnDeviceProfileChangeListener(OnDeviceProfileChangeListener listener) {
|
||||
mDPChangeListeners.remove(listener);
|
||||
}
|
||||
|
||||
protected void dispatchDeviceProfileChanged() {
|
||||
int count = mDPChangeListeners.size();
|
||||
for (int i = 0; i < count; i++) {
|
||||
for (int i = mDPChangeListeners.size() - 1; i >= 0; i--) {
|
||||
mDPChangeListeners.get(i).onDeviceProfileChanged(mDeviceProfile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user