Merge "Handle IllegalStateExceptions in CellularSecurityPreferenceController" into main
This commit is contained in:
@@ -88,10 +88,10 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll
|
|||||||
} catch (UnsupportedOperationException e) {
|
} catch (UnsupportedOperationException e) {
|
||||||
Log.i(LOG_TAG, "Null cipher enablement is unsupported, hiding divider: "
|
Log.i(LOG_TAG, "Null cipher enablement is unsupported, hiding divider: "
|
||||||
+ e.getMessage());
|
+ e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (IllegalStateException e) {
|
||||||
Log.e(LOG_TAG,
|
Log.e(LOG_TAG,
|
||||||
"Failed isNullCipherAndIntegrityEnabled. Setting availability to "
|
"Failed isNullCipherAndIntegrityEnabled. Setting availability to "
|
||||||
+ "CONDITIONALLY_UNAVAILABLE. Exception: "
|
+ "UNSUPPORTED_ON_DEVICE. Exception: "
|
||||||
+ e.getMessage());
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,6 +104,12 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll
|
|||||||
} catch (UnsupportedOperationException e) {
|
} catch (UnsupportedOperationException e) {
|
||||||
Log.i(LOG_TAG, "Cellular security notifications are unsupported, hiding divider: "
|
Log.i(LOG_TAG, "Cellular security notifications are unsupported, hiding divider: "
|
||||||
+ e.getMessage());
|
+ e.getMessage());
|
||||||
|
} catch (IllegalStateException e) {
|
||||||
|
Log.e(LOG_TAG,
|
||||||
|
"Failed isNullCipherNotificationsEnabled, "
|
||||||
|
+ "isCellularIdentifierDisclosureNotificationsEnabled. "
|
||||||
|
+ "Setting availability to UNSUPPORTED_ON_DEVICE. Exception: "
|
||||||
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNullCipherDisablementAvailable || areCellSecNotificationsAvailable) {
|
if (isNullCipherDisablementAvailable || areCellSecNotificationsAvailable) {
|
||||||
|
Reference in New Issue
Block a user