mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Added fixme in places for permissions check
This commit is contained in:
parent
82f2d58f58
commit
24d0b9fdf6
2 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ public class ContributionController {
|
||||||
try {
|
try {
|
||||||
activity.startActivity(shareIntent);
|
activity.startActivity(shareIntent);
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
|
//FIXME: Add permission request here
|
||||||
Log.e("ContributionController", "Security Exception", e);
|
Log.e("ContributionController", "Security Exception", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,8 @@ public class UploadController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startUpload(final Contribution contribution, final ContributionUploadProgress onComplete) {
|
public void startUpload(final Contribution contribution, final ContributionUploadProgress onComplete) {
|
||||||
|
|
||||||
|
//FIXME: Add permission request here
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||||
|
|
||||||
if(TextUtils.isEmpty(contribution.getCreator())) {
|
if(TextUtils.isEmpty(contribution.getCreator())) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue