mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Remove wrong code
This commit is contained in:
parent
8f78f904a0
commit
00ab7dc339
2 changed files with 2 additions and 20 deletions
|
|
@ -16,7 +16,7 @@ dependencies {
|
|||
compile 'com.android.support:support-v4:23.4.0'
|
||||
compile 'com.android.support:appcompat-v7:23.4.0'
|
||||
compile 'com.android.support:design:23.4.0'
|
||||
compile 'com.github.kaknazaveshtakipishi:PermissionEverywhere:alpha'
|
||||
|
||||
|
||||
//noinspection GradleDependency - old version has required feature
|
||||
compile 'com.google.code.gson:gson:1.4'
|
||||
|
|
@ -30,7 +30,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId "fr.free.nrw.commons"
|
||||
minSdkVersion 15
|
||||
minSdkVersion 11
|
||||
targetSdkVersion 23
|
||||
|
||||
ndk {
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ import android.util.Log;
|
|||
import android.webkit.MimeTypeMap;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.permissioneverywhere.PermissionEverywhere;
|
||||
import com.permissioneverywhere.PermissionResponse;
|
||||
import com.permissioneverywhere.PermissionResultCallback;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
|
||||
|
|
@ -111,16 +107,6 @@ public class UploadController {
|
|||
String license = prefs.getString(Prefs.DEFAULT_LICENSE, Prefs.Licenses.CC_BY_SA);
|
||||
contribution.setLicense(license);
|
||||
|
||||
PermissionEverywhere.getPermission(app,
|
||||
new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},
|
||||
2,
|
||||
"Notification title",
|
||||
"This app needs a write permission",
|
||||
R.drawable.ic_launcher)
|
||||
.enqueue(new PermissionResultCallback() {
|
||||
@Override
|
||||
public void onComplete(PermissionResponse permissionResponse) {
|
||||
|
||||
|
||||
//FIXME: Add permission request here. Only executeAsyncTask if permission has been granted
|
||||
Utils.executeAsyncTask(new AsyncTask<Void, Void, Contribution>() {
|
||||
|
|
@ -184,9 +170,5 @@ public class UploadController {
|
|||
onComplete.onUploadStarted(contribution);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue