[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:
Tyler Dunn 2016-04-18 19:30:50 -04:00
parent a0b54f558e
commit 937caea1c9

View File

@ -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)