mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Further code cleanup
This commit is contained in:
parent
5a0a8c6019
commit
821eaceb27
2 changed files with 0 additions and 11 deletions
|
|
@ -23,16 +23,12 @@ public class DirectUpload {
|
|||
private Fragment fragment;
|
||||
private SharedPreferences prefs;
|
||||
|
||||
|
||||
|
||||
DirectUpload(Fragment fragment, ContributionController controller, SharedPreferences prefs) {
|
||||
this.fragment = fragment;
|
||||
this.controller = controller;
|
||||
this.prefs = prefs;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void initiateCameraUpload() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (ContextCompat.checkSelfPermission(fragment.getActivity(), WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) {
|
||||
|
|
|
|||
|
|
@ -248,13 +248,6 @@ public class ShareActivity
|
|||
if (intent.hasExtra("isDirectUpload")) {
|
||||
Timber.d("This was initiated by a direct upload from Nearby");
|
||||
isNearbyUpload = true;
|
||||
|
||||
/**
|
||||
SharedPreferences sharedPref = this.getSharedPreferences("Direct Upload", Context.MODE_PRIVATE);
|
||||
nearbyTitle = sharedPref.getString("Title", "");
|
||||
nearbyDesc = sharedPref.getString("Desc", "");
|
||||
Timber.d("In ShareActivity, image title: " + nearbyTitle + " and image desc: " + nearbyDesc);
|
||||
*/
|
||||
}
|
||||
mimeType = intent.getType();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue