mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Merge "Add null check for recents scaling during quick switch." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d32a472e5c
@@ -1821,7 +1821,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
|
||||
// Scaling of RecentsView during quick switch based on amount of recents scroll
|
||||
private float getScaleProgressDueToScroll() {
|
||||
if (!mActivity.getDeviceProfile().isTablet || mRecentsView == null
|
||||
if (mActivity == null || !mActivity.getDeviceProfile().isTablet || mRecentsView == null
|
||||
|| !mRecentsViewScrollLinked) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user