Prevent intent resolver from changing height when no app targets am: 4c0513d8c7

Change-Id: If6a593310fec1bc18740498844f5d552a80270ca
This commit is contained in:
Automerger Merge Worker
2020-03-06 15:50:37 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -327,7 +327,6 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
return false;
}
}
showListView(activeListAdapter);
return activeListAdapter.rebuildList(doPostProcessing);
}
@@ -408,7 +407,7 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
emptyStateView.findViewById(R.id.resolver_empty_state_progress).setVisibility(View.GONE);
}
private void showListView(ResolverListAdapter activeListAdapter) {
protected void showListView(ResolverListAdapter activeListAdapter) {
ProfileDescriptor descriptor = getItem(
userHandleToPageIndex(activeListAdapter.getUserHandle()));
descriptor.rootView.findViewById(R.id.resolver_list).setVisibility(View.VISIBLE);

View File

@@ -989,6 +989,8 @@ public class ResolverActivity extends Activity implements
}
if (shouldShowEmptyState(listAdapter)) {
mMultiProfilePagerAdapter.showEmptyState(listAdapter);
} else {
mMultiProfilePagerAdapter.showListView(listAdapter);
}
if (doPostProcessing) {
if (mMultiProfilePagerAdapter.getCurrentUserHandle().getIdentifier()