Prevent intent resolver from changing height when no app targets am: 4c0513d8c7 am: e338fa2d9d
Change-Id: I2f547bc0f224ece111864ec202cdf7f95983e728
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