mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add comments
This commit is contained in:
parent
619c14857d
commit
350679dc5d
2 changed files with 3 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ public class ContributionController {
|
|||
try {
|
||||
activity.startActivity(shareIntent);
|
||||
} catch (SecurityException e) {
|
||||
//FIXME: Add permission request here
|
||||
//FIXME: Add permission request here. Only startActivity if permission has been granted.
|
||||
Log.e("ContributionController", "Security Exception", e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class UploadController {
|
|||
|
||||
public void startUpload(final Contribution contribution, final ContributionUploadProgress onComplete) {
|
||||
|
||||
//FIXME: Add permission request here
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||
|
||||
if(TextUtils.isEmpty(contribution.getCreator())) {
|
||||
|
|
@ -104,6 +104,7 @@ public class UploadController {
|
|||
String license = prefs.getString(Prefs.DEFAULT_LICENSE, Prefs.Licenses.CC_BY_SA);
|
||||
contribution.setLicense(license);
|
||||
|
||||
//FIXME: Add permission request here. Only executeAsyncTask if permission has been granted
|
||||
Utils.executeAsyncTask(new AsyncTask<Void, Void, Contribution>() {
|
||||
|
||||
// Fills up missing information about Contributions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue