Skip to content

Commit

Permalink
Removes the "Other" deletion option mentioned in #3174 (#3183)
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthurRousseau authored and Vivek Maskara committed Nov 6, 2019
1 parent 9e8b07d commit 754225b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,17 @@ public void askReasonAndExecute(Media media,
boolean[] checkedItems = {false, false, false, false};
ArrayList<Integer> mUserReason = new ArrayList<>();

String[] reasonList = {"Reason 1", "Reason 2", "Reason 3", "Reason 4"};
String[] reasonList = {"Reason 1", "Reason 2", "Reason 3"};


if (problem == ReviewController.DeleteReason.SPAM) {
reasonList[0] = context.getString(R.string.delete_helper_ask_spam_selfie);
reasonList[1] = context.getString(R.string.delete_helper_ask_spam_blurry);
reasonList[2] = context.getString(R.string.delete_helper_ask_spam_nonsense);
reasonList[3] = context.getString(R.string.delete_helper_ask_spam_other);
} else if (problem == ReviewController.DeleteReason.COPYRIGHT_VIOLATION) {
reasonList[0] = context.getString(R.string.delete_helper_ask_reason_copyright_press_photo);
reasonList[1] = context.getString(R.string.delete_helper_ask_reason_copyright_internet_photo);
reasonList[2] = context.getString(R.string.delete_helper_ask_reason_copyright_logo);
reasonList[3] = context.getString(R.string.delete_helper_ask_reason_copyright_other);
}

alert.setMultiChoiceItems(reasonList, checkedItems, (dialogInterface, position, isChecked) -> {
Expand Down

0 comments on commit 754225b

Please sign in to comment.