diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-01-08 09:25:15 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-01-08 09:25:15 +0000 |
commit | d217ffff9523df4be0104f329d1b03abbf7650f2 (patch) | |
tree | f028103438b61d74cdd8b6e3169511ec5263cf4d /app/src/main/java | |
parent | 2f474519864c986ec4d7b10d41aea7d35f7d38c7 (diff) | |
download | infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar.gz infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar.bz2 infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar.lz infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar.xz infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.tar.zst infinity-for-reddit-d217ffff9523df4be0104f329d1b03abbf7650f2.zip |
Fix title string in a dialog for PostFilter application.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostFilterUsageListingActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostFilterUsageListingActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostFilterUsageListingActivity.java index daf9a704..350584db 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostFilterUsageListingActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostFilterUsageListingActivity.java @@ -133,15 +133,18 @@ public class PostFilterUsageListingActivity extends BaseActivity { textInputEditText.setText(nameOfUsage); } textInputEditText.requestFocus(); + int titleStringId = R.string.subreddit; switch (type) { case PostFilterUsage.SUBREDDIT_TYPE: textInputEditText.setHint(R.string.settings_tab_subreddit_name); break; case PostFilterUsage.USER_TYPE: textInputEditText.setHint(R.string.settings_tab_username); + titleStringId = R.string.user; break; case PostFilterUsage.MULTIREDDIT_TYPE: textInputEditText.setHint(R.string.settings_tab_multi_reddit_name); + titleStringId = R.string.multi_reddit; break; } @@ -150,7 +153,7 @@ public class PostFilterUsageListingActivity extends BaseActivity { imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); } new MaterialAlertDialogBuilder(this, R.style.MaterialAlertDialogTheme) - .setTitle(R.string.edit_post_filter_name_of_usage_info) + .setTitle(titleStringId) .setView(dialogView) .setPositiveButton(R.string.ok, (editTextDialogInterface, i1) -> { |