This commit is contained in:
misaochan 2018-01-01 21:10:28 +10:00 committed by maskara
parent 4e971eb708
commit 1061537438
2 changed files with 3 additions and 3 deletions

View file

@ -74,6 +74,4 @@ class DirectUpload {
}
}
//TODO: Need to call onActivityResult() to handle the image picked
//TODO: Handle onRequestPermissionsResult
}

View file

@ -413,12 +413,14 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
DirectUpload directUpload = new DirectUpload(place.getName(), place.getLongDescription(), this, controller);
directUpload.storeSharedPrefs();
directUpload.initiateGalleryUpload();
//TODO: App crashes after image upload completes
//TODO: Handle onRequestPermissionsResult
});
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
//FIXME: must get the file data for Google Photos when receive the intent answer, in the onActivityResult method
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {