[Android] Drop commit() for apply()
Apply is asynchronous, and we aren't expecting a return value so there is no reason not to use apply.
This commit is contained in:
parent
a0b54f558e
commit
937caea1c9
|
@ -54,7 +54,7 @@ public final class AssetCopyService extends IntentService
|
|||
SharedPreferences.Editor editor = preferences.edit();
|
||||
|
||||
editor.putBoolean("assetsCopied", true);
|
||||
editor.commit();
|
||||
editor.apply();
|
||||
}
|
||||
|
||||
private void copyAsset(String asset, String output, Boolean overwrite)
|
||||
|
|
Loading…
Reference in New Issue