Merge "Remove unnecessary method from StatefulActivity" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a4d1e9aa99
@@ -1305,11 +1305,9 @@ public class QuickstepLauncher extends Launcher {
|
||||
: groupTask.mSplitBounds.leftTaskPercent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCommandQueueEmpty() {
|
||||
OverviewCommandHelper overviewCommandHelper = mTISBindHelper.getOverviewCommandHelper();
|
||||
return super.isCommandQueueEmpty()
|
||||
&& (overviewCommandHelper == null || overviewCommandHelper.isCommandQueueEmpty());
|
||||
return overviewCommandHelper == null || overviewCommandHelper.isCommandQueueEmpty();
|
||||
}
|
||||
|
||||
private static final class LauncherTaskViewController extends
|
||||
|
||||
@@ -467,10 +467,8 @@ public final class RecentsActivity extends StatefulActivity<RecentsState> {
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCommandQueueEmpty() {
|
||||
OverviewCommandHelper overviewCommandHelper = mTISBindHelper.getOverviewCommandHelper();
|
||||
return super.isCommandQueueEmpty()
|
||||
&& (overviewCommandHelper == null || overviewCommandHelper.isCommandQueueEmpty());
|
||||
return overviewCommandHelper == null || overviewCommandHelper.isCommandQueueEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ public class FallbackRecentsView extends RecentsView<RecentsActivity, RecentsSta
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCommandQueueEmpty() {
|
||||
protected boolean isCommandQueueEmpty() {
|
||||
return mActivity.isCommandQueueEmpty();
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public class LauncherRecentsView extends RecentsView<QuickstepLauncher, Launcher
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCommandQueueEmpty() {
|
||||
protected boolean isCommandQueueEmpty() {
|
||||
return mActivity.isCommandQueueEmpty();
|
||||
}
|
||||
|
||||
|
||||
@@ -2374,7 +2374,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
protected abstract void handleStartHome(boolean animated);
|
||||
|
||||
/** Returns whether the overview command helper queue is empty. */
|
||||
public abstract boolean isCommandQueueEmpty();
|
||||
protected abstract boolean isCommandQueueEmpty();
|
||||
|
||||
public void reset() {
|
||||
setCurrentTask(-1);
|
||||
|
||||
@@ -237,10 +237,4 @@ public abstract class StatefulActivity<STATE_TYPE extends BaseState<STATE_TYPE>>
|
||||
* @param leftOrTop if the staged split will be positioned left or top.
|
||||
*/
|
||||
public void enterStageSplitFromRunningApp(boolean leftOrTop) { }
|
||||
|
||||
|
||||
/** Returns whether the overview command helper queue is empty. */
|
||||
public boolean isCommandQueueEmpty() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user