correctness
use apply() on SharedPreferences use dp instead of sp for text sizes BUILD SUCCESSFUL in 22s 39 actionable tasks: 10 executed, 29 up-to-date
This commit is contained in:
parent
5660b5ddc6
commit
a588ec084b
3 changed files with 5 additions and 5 deletions
|
|
@ -264,7 +264,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
|||
else if (v instanceof String)
|
||||
prefEdit.putString(key, ((String) v));
|
||||
}
|
||||
prefEdit.commit();
|
||||
prefEdit.apply();
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue