summaryrefslogtreecommitdiffstats
path: root/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java')
-rw-r--r--samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java b/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java
index 57c443906..1e76fbda8 100644
--- a/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java
+++ b/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/MainActivity.java
@@ -120,12 +120,10 @@ public class MainActivity extends Activity {
*
* This flag is used by {@code GetRestrictionsReceiver} to determine if a custom app
* restriction activity should be used.
- *
- * @param view
*/
public void onCustomClicked(View view) {
final SharedPreferences.Editor editor =
PreferenceManager.getDefaultSharedPreferences(this).edit();
- editor.putBoolean(CUSTOM_CONFIG_KEY, mCustomConfig.isChecked()).commit();
+ editor.putBoolean(CUSTOM_CONFIG_KEY, mCustomConfig.isChecked()).apply();
}
}