Merge "Avoid IPC call with an empty array" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5449ee0786
@ -3033,11 +3033,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
}
|
||||
|
||||
final int N = newlyVisible.size();
|
||||
String[] newlyVisibleKeyAr = new String[N];
|
||||
for (int i = 0; i < N; i++) {
|
||||
newlyVisibleKeyAr[i] = newlyVisibleAr[i].key;
|
||||
if (N > 0) {
|
||||
String[] newlyVisibleKeyAr = new String[N];
|
||||
for (int i = 0; i < N; i++) {
|
||||
newlyVisibleKeyAr[i] = newlyVisibleAr[i].key;
|
||||
}
|
||||
|
||||
setNotificationsShown(newlyVisibleKeyAr);
|
||||
}
|
||||
setNotificationsShown(newlyVisibleKeyAr);
|
||||
}
|
||||
|
||||
// State logging
|
||||
|
Reference in New Issue
Block a user