am 7e7f2b4d: Use actual number of packages rather than getCount()

* commit '7e7f2b4de003bd5aeef04500025cb2bc34e6df28':
  Use actual number of packages rather than getCount()
This commit is contained in:
Craig Mautner
2014-08-05 19:16:18 +00:00
committed by Android Git Automerger

View File

@@ -229,7 +229,7 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic
}
mAlwaysUseOption = alwaysUseOption;
int count = mAdapter.getCount();
int count = mAdapter.mList.size();
if (mLaunchedFromUid < 0 || UserHandle.isIsolated(mLaunchedFromUid)) {
// Gulp!
finish();