mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Androind: Lint warning, use "apply()" instead of "commit()"
'Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background'
This commit is contained in:
parent
4ee79e6493
commit
8da1021b51
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ public class HIDDeviceManager {
|
|||
// if (shouldClear) {
|
||||
// SharedPreferences.Editor spedit = mSharedPreferences.edit();
|
||||
// spedit.clear();
|
||||
// spedit.commit();
|
||||
// spedit.apply();
|
||||
// }
|
||||
// else
|
||||
{
|
||||
|
|
@ -135,7 +135,7 @@ public class HIDDeviceManager {
|
|||
}
|
||||
|
||||
spedit.putInt(identifier, result);
|
||||
spedit.commit();
|
||||
spedit.apply();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue