Prevent intent resolver from changing height when no app targets am: 4c0513d8c7
Change-Id: If6a593310fec1bc18740498844f5d552a80270ca
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user