Skip to content

Commit 7070081

Browse files
committed
Remove deprecated code
1 parent 5418d02 commit 7070081

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android-example-app/app-kotlin/src/main/java/ch/freshbits/pathshare/example/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,6 @@ class MainActivity : AppCompatActivity() {
248248
}
249249

250250
private fun preferences(): SharedPreferences {
251-
return applicationContext.getSharedPreferences(SESSION_PREFERENCES, Context.MODE_MULTI_PROCESS)
251+
return applicationContext.getSharedPreferences(SESSION_PREFERENCES, MODE_PRIVATE)
252252
}
253253
}

android-example-app/app/src/main/java/ch/freshbits/pathshare/example/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,6 @@ private void showToast(String message) {
335335
}
336336

337337
private SharedPreferences getPreferences() {
338-
return getApplicationContext().getSharedPreferences(SESSION_PREFERENCES, Context.MODE_MULTI_PROCESS);
338+
return getApplicationContext().getSharedPreferences(SESSION_PREFERENCES, Context.MODE_PRIVATE);
339339
}
340340
}

0 commit comments

Comments
 (0)