mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Change to getSharedPreferences to pass prefs between activities
This commit is contained in:
parent
ef3eda7d10
commit
ccb0c87b5f
2 changed files with 11 additions and 2 deletions
|
|
@ -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", "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue