|
@@ -113,7 +113,7 @@ public class HIDDeviceManager {
|
|
|
// if (shouldClear) {
|
|
// if (shouldClear) {
|
|
|
// SharedPreferences.Editor spedit = mSharedPreferences.edit();
|
|
// SharedPreferences.Editor spedit = mSharedPreferences.edit();
|
|
|
// spedit.clear();
|
|
// spedit.clear();
|
|
|
-// spedit.commit();
|
|
|
|
|
|
|
+// spedit.apply();
|
|
|
// }
|
|
// }
|
|
|
// else
|
|
// else
|
|
|
{
|
|
{
|
|
@@ -135,7 +135,7 @@ public class HIDDeviceManager {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
spedit.putInt(identifier, result);
|
|
spedit.putInt(identifier, result);
|
|
|
- spedit.commit();
|
|
|
|
|
|
|
+ spedit.apply();
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|