Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Sep 21, 2018
1 parent 516054a commit 3132869
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ protected Long doInBackground(Long... param) {
}
}
} else if (MODE == DELETE) {
twitter.deleteMessage(param[1]);
mData.deleteDm(param[1]);
message = mData.getMessages();
twitter.deleteMessage(param[1]);
}
} catch (TwitterException err) {
returnCode = err.getErrorCode();
Expand Down Expand Up @@ -91,6 +91,9 @@ protected void onPostExecute(Long mode) {
case 420:
Toast.makeText(ui.get(), R.string.rate_limit_exceeded, Toast.LENGTH_SHORT).show();
break;
case 34:
Toast.makeText(ui.get(), R.string.dm_not_found, Toast.LENGTH_SHORT).show();
break;
case -1:
Toast.makeText(ui.get(), R.string.error_not_specified, Toast.LENGTH_SHORT).show();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ protected void onPostExecute(Long mode) {
break;
case 144:
Toast.makeText(ui.get(), R.string.tweet_not_found, Toast.LENGTH_LONG).show();
ui.get().finish();
break;
default:
Toast.makeText(ui.get(), errMsg, Toast.LENGTH_LONG).show();
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@
<string name="confirm_unfollow">User entfolgen?</string>
<string name="confirm_block">user sperren?</string>
<string name="confirm_delete_dm">Nachricht löschen?</string>
<string name="dm_not_found">Nachricht nicht gefunden!</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@
<string name="confirm_block">block user?</string>
<string name="confirm_log_lout">log out?</string>
<string name="confirm_cancel_tweet">cancel tweet?</string>
<string name="dm_not_found">message not found!</string>
</resources>

0 comments on commit 3132869

Please sign in to comment.