am db9e3f68: Merge "Fix crash when showing accounts." into lmp-dev

* commit 'db9e3f682fd251a9c996141af73b285974dd9d1c':
  Fix crash when showing accounts.
This commit is contained in:
Kenny Guy
2014-09-12 19:37:22 +00:00
committed by Android Git Automerger

View File

@@ -117,6 +117,7 @@ public class AccountSettings extends SettingsPreferenceFragment
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
mUm = (UserManager) getSystemService(Context.USER_SERVICE); mUm = (UserManager) getSystemService(Context.USER_SERVICE);
mProfileNotAvailablePreference = new Preference(getActivity());
mAuthorities = getActivity().getIntent().getStringArrayExtra(EXTRA_AUTHORITIES); mAuthorities = getActivity().getIntent().getStringArrayExtra(EXTRA_AUTHORITIES);
if (mAuthorities != null) { if (mAuthorities != null) {
mAuthoritiesCount = mAuthorities.length; mAuthoritiesCount = mAuthorities.length;