mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
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:
parent
2164fb00f3
commit
41b53f4560
3 changed files with 11 additions and 7 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue