Further code cleanup

This commit is contained in:
misaochan 2018-01-25 02:32:36 +10:00 committed by maskara
parent 5a0a8c6019
commit 821eaceb27
2 changed files with 0 additions and 11 deletions

View file

@ -23,16 +23,12 @@ public class DirectUpload {
private Fragment fragment; private Fragment fragment;
private SharedPreferences prefs; private SharedPreferences prefs;
DirectUpload(Fragment fragment, ContributionController controller, SharedPreferences prefs) { DirectUpload(Fragment fragment, ContributionController controller, SharedPreferences prefs) {
this.fragment = fragment; this.fragment = fragment;
this.controller = controller; this.controller = controller;
this.prefs = prefs; this.prefs = prefs;
} }
void initiateCameraUpload() { void initiateCameraUpload() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (ContextCompat.checkSelfPermission(fragment.getActivity(), WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) { if (ContextCompat.checkSelfPermission(fragment.getActivity(), WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) {

View file

@ -248,13 +248,6 @@ public class ShareActivity
if (intent.hasExtra("isDirectUpload")) { if (intent.hasExtra("isDirectUpload")) {
Timber.d("This was initiated by a direct upload from Nearby"); Timber.d("This was initiated by a direct upload from Nearby");
isNearbyUpload = true; 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(); mimeType = intent.getType();
} }