Replace with enum two strings that were in strings.xml but were used as (#2939)

constants. Remove strings from strings.xml Issue # 2931
This commit is contained in:
kateOmally 2019-05-08 11:37:29 -07:00 committed by neslihanturan
parent 2164fb00f3
commit 41b53f4560
3 changed files with 11 additions and 7 deletions

View file

@ -74,18 +74,23 @@ public class ReviewController {
}
}
public enum DeleteReason {
SPAM,
COPYRIGHT_VIOLATION
}
public void reportSpam(@NonNull Activity activity) {
deleteHelper.askReasonAndExecute(new Media("File:" + fileName),
activity,
activity.getResources().getString(R.string.review_spam_report_question),
activity.getResources().getString(R.string.review_spam_report_problem));
DeleteReason.SPAM);
}
public void reportPossibleCopyRightViolation(@NonNull Activity activity) {
deleteHelper.askReasonAndExecute(new Media("File:" + fileName),
activity,
activity.getResources().getString(R.string.review_c_violation_report_question),
activity.getResources().getString(R.string.review_c_violation_report_problem));
DeleteReason.COPYRIGHT_VIOLATION);
}
@SuppressLint("CheckResult")