Skip to content

Commit

Permalink
Fix lint: Use apply() on SharedPreferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Catfriend1 committed Aug 6, 2021
1 parent 204343d commit 7599654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ public boolean importConfig() {
*/
SharedPreferences.Editor editor = mPreferences.edit();
editor.clear();
editor.commit();
editor.apply();
}
} catch (IOException | ClassNotFoundException e) {
Log.e(TAG, "importConfig: Failed to import SharedPreferences #1", e);
Expand Down

0 comments on commit 7599654

Please sign in to comment.