- Don't let user settings run
Bug:
29194585
Change-Id: Ia9c46c7ba04ce2809304bebe8a4c5cdac2108611
import android.support.v7.preference.Preference.OnPreferenceClickListener;
import android.support.v7.preference.PreferenceGroup;
import android.support.v7.preference.PreferenceScreen;
+import android.provider.Settings.Global;
import android.util.Log;
import android.util.SparseArray;
import android.view.Menu;
loadProfile();
updateUserList();
mShouldUpdateUserList = false;
+
+ if (Global.getInt(getContext().getContentResolver(), Global.DEVICE_PROVISIONED, 0) == 0) {
+ getActivity().finish();
+ return;
+ }
}
@Override