Revision f85956a8
Added by Leszek Koltunski 6 months ago
| src/main/java/org/distorted/main/MainActivity.java | ||
|---|---|---|
| 208 | 208 |
editor.putInt("sortMode", mSortMode);
|
| 209 | 209 |
|
| 210 | 210 |
RubikObjectList.savePreferences(editor); |
| 211 |
|
|
| 212 |
boolean success = editor.commit(); |
|
| 213 |
if( !success ) android.util.Log.e("D", "Failed to save preferences");
|
|
| 211 |
editor.apply(); |
|
| 214 | 212 |
} |
| 215 | 213 |
|
| 216 | 214 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| src/main/java/org/distorted/patterns/PatternActivity.java | ||
|---|---|---|
| 133 | 133 |
|
| 134 | 134 |
ScreenList.savePreferences(editor); |
| 135 | 135 |
|
| 136 |
boolean success = editor.commit(); |
|
| 137 |
if( !success ) android.util.Log.e("D", "Failed to save preferences");
|
|
| 136 |
editor.apply(); |
|
| 138 | 137 |
} |
| 139 | 138 |
|
| 140 | 139 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| src/main/java/org/distorted/solvers/SolverActivity.java | ||
|---|---|---|
| 142 | 142 |
ScreenList.savePreferences(editor); |
| 143 | 143 |
|
| 144 | 144 |
editor.putBoolean("solverDisplayDialog", mDisplayMessageDialog );
|
| 145 |
|
|
| 146 |
boolean success = editor.commit(); |
|
| 147 |
if( !success ) android.util.Log.e("D", "Failed to save preferences");
|
|
| 145 |
editor.apply(); |
|
| 148 | 146 |
} |
| 149 | 147 |
|
| 150 | 148 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
editor.commit -> editor.apply