Merge "Check whether should auto launch after showing empty state screen" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a5bba3e6a
@@ -1027,7 +1027,7 @@ public class ResolverActivity extends Activity implements
|
||||
|
||||
@Override // ResolverListCommunicator
|
||||
public final void onPostListReady(ResolverListAdapter listAdapter, boolean doPostProcessing) {
|
||||
if (isAutolaunching() || maybeAutolaunchActivity()) {
|
||||
if (isAutolaunching()) {
|
||||
return;
|
||||
}
|
||||
if (mMultiProfilePagerAdapter.shouldShowEmptyStateScreen(listAdapter)) {
|
||||
@@ -1035,6 +1035,11 @@ public class ResolverActivity extends Activity implements
|
||||
} else {
|
||||
mMultiProfilePagerAdapter.showListView(listAdapter);
|
||||
}
|
||||
// showEmptyResolverListEmptyState can mark the tab as loaded,
|
||||
// which is a precondition for auto launching
|
||||
if (maybeAutolaunchActivity()) {
|
||||
return;
|
||||
}
|
||||
if (doPostProcessing) {
|
||||
maybeCreateHeader(listAdapter);
|
||||
resetButtonBar();
|
||||
|
||||
Reference in New Issue
Block a user