Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well
Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
(cherry picked from commit 455718e842
)
This commit is contained in:
parent
dec3330a83
commit
fb5ae9060d
|
@ -107,10 +107,9 @@ public final class FallbackActivityInterface extends
|
|||
public RecentsView getVisibleRecentsView() {
|
||||
RecentsActivity activity = getCreatedActivity();
|
||||
if (activity != null) {
|
||||
RecentsView recentsView = activity.getOverviewPanel();
|
||||
if (activity.hasBeenResumed() || (ENABLE_QUICKSTEP_LIVE_TILE.get() && isInLiveTileMode()
|
||||
&& recentsView.getRunningTaskId() == -1)) {
|
||||
return recentsView;
|
||||
if (activity.hasBeenResumed()
|
||||
|| (ENABLE_QUICKSTEP_LIVE_TILE.get() && isInLiveTileMode())) {
|
||||
return activity.getOverviewPanel();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue