Change to getSharedPreferences to pass prefs between activities

This commit is contained in:
misaochan 2018-01-02 21:15:04 +10:00
parent ef3eda7d10
commit ccb0c87b5f
2 changed files with 11 additions and 2 deletions

View file

@ -228,7 +228,7 @@ public class ShareActivity
if (intent.hasExtra("isDirectUpload")) {
Timber.d("This was initiated by a direct upload from Nearby");
//TODO: Shift this into title/desc screen after upload initiated
SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);
SharedPreferences sharedPref = this.getSharedPreferences("Direct Upload", Context.MODE_PRIVATE);
String imageTitle = sharedPref.getString("Title", "");
String imageDesc = sharedPref.getString("Desc", "");