Merge "Fix a bug when constructing a ChooserTargetAdapter without custom targets" into mnc-dev

This commit is contained in:
Adam Powell
2015-04-28 22:59:57 +00:00
committed by Android (Google) Code Review

View File

@@ -405,8 +405,10 @@ public class ChooserActivity extends ResolverActivity {
int launchedFromUid, boolean filterLastUsed, ChooserTarget[] callerChooserTargets) {
super(context, initialIntents, rList, launchedFromUid, filterLastUsed);
for (ChooserTarget target : callerChooserTargets) {
mCallerTargets.add(new ChooserTargetInfo(target));
if (callerChooserTargets != null) {
for (ChooserTarget target : callerChooserTargets) {
mCallerTargets.add(new ChooserTargetInfo(target));
}
}
}