Merge "Adjusting getTitleFromOrganizationName() after API changes" into nyc-dev am: d4f4e2d
am: e7b4ba9
* commit 'e7b4ba9f53b879d322361d4e3bf480b25ea66612':
Adjusting getTitleFromOrganizationName() after API changes
Change-Id: I9804f1f58a331ff8cbbd4edc5a35daae22feb7c0
This commit is contained in:
@@ -95,6 +95,8 @@ public class ConfirmDeviceCredentialActivity extends Activity {
|
||||
private String getTitleFromOrganizationName(int userId) {
|
||||
DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(
|
||||
Context.DEVICE_POLICY_SERVICE);
|
||||
return (dpm != null) ? dpm.getOrganizationNameForUser(userId) : null;
|
||||
CharSequence organizationNameForUser = (dpm != null)
|
||||
? dpm.getOrganizationNameForUser(userId) : null;
|
||||
return organizationNameForUser != null ? organizationNameForUser.toString() : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user