Merge "Prevent NFE in SystemUI when parsing invalid int"
am: 9d7e1fe726
Change-Id: Ic015f0f87d7d8044701d9326afdd71893879f3b0
This commit is contained in:
@@ -51,7 +51,9 @@ public class TunablePadding implements Tunable {
|
||||
public void onTuningChanged(String key, String newValue) {
|
||||
int dimen = mDefaultSize;
|
||||
if (newValue != null) {
|
||||
dimen = (int) (Integer.parseInt(newValue) * mDensity);
|
||||
try {
|
||||
dimen = (int) (Integer.parseInt(newValue) * mDensity);
|
||||
} catch (NumberFormatException ex) {}
|
||||
}
|
||||
int left = mView.isLayoutRtl() ? FLAG_END : FLAG_START;
|
||||
int right = mView.isLayoutRtl() ? FLAG_START : FLAG_END;
|
||||
|
||||
Reference in New Issue
Block a user