mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Fix code quality issues (#2359)
* Minor changes * Fix more errors * Revert change * Minor error fix * Remove unused import * Merge branch 'master' of github.com:commons-app/apps-android-commons into lint-errors # Conflicts: # app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java * Minor changes * Undo changes * Undo performclick
This commit is contained in:
parent
9882d24651
commit
01a7526477
6 changed files with 11 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ public class DeleteTask extends AsyncTask<Void, Integer, Boolean> {
|
|||
@Inject MediaWikiApi mwApi;
|
||||
@Inject SessionManager sessionManager;
|
||||
|
||||
public static final int NOTIFICATION_DELETE = 1;
|
||||
private static final int NOTIFICATION_DELETE = 1;
|
||||
|
||||
private NotificationManager notificationManager;
|
||||
private Builder notificationBuilder;
|
||||
|
|
@ -113,11 +113,11 @@ public class DeleteTask extends AsyncTask<Void, Integer, Boolean> {
|
|||
publishProgress(4);
|
||||
|
||||
mwApi.appendEdit(editToken,userPageString+"\n",
|
||||
"User_Talk:"+sessionManager.getCurrentAccount().name,summary);
|
||||
"User_Talk:"+ sessionManager.getCurrentAccount().name,summary);
|
||||
publishProgress(5);
|
||||
}
|
||||
catch (Exception e) {
|
||||
Timber.d(e.getMessage());
|
||||
Timber.e(e);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
@ -160,7 +160,7 @@ public class DeleteTask extends AsyncTask<Void, Integer, Boolean> {
|
|||
|
||||
@Override
|
||||
protected void onPostExecute(Boolean result) {
|
||||
String message = "";
|
||||
String message;
|
||||
String title = "Nominating for Deletion";
|
||||
|
||||
if (result){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue