mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 21:07:11 +01:00
Fix title string in a dialog for PostFilter application.
This commit is contained in:
parent
2f47451986
commit
d217ffff95
@ -133,15 +133,18 @@ public class PostFilterUsageListingActivity extends BaseActivity {
|
|||||||
textInputEditText.setText(nameOfUsage);
|
textInputEditText.setText(nameOfUsage);
|
||||||
}
|
}
|
||||||
textInputEditText.requestFocus();
|
textInputEditText.requestFocus();
|
||||||
|
int titleStringId = R.string.subreddit;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case PostFilterUsage.SUBREDDIT_TYPE:
|
case PostFilterUsage.SUBREDDIT_TYPE:
|
||||||
textInputEditText.setHint(R.string.settings_tab_subreddit_name);
|
textInputEditText.setHint(R.string.settings_tab_subreddit_name);
|
||||||
break;
|
break;
|
||||||
case PostFilterUsage.USER_TYPE:
|
case PostFilterUsage.USER_TYPE:
|
||||||
textInputEditText.setHint(R.string.settings_tab_username);
|
textInputEditText.setHint(R.string.settings_tab_username);
|
||||||
|
titleStringId = R.string.user;
|
||||||
break;
|
break;
|
||||||
case PostFilterUsage.MULTIREDDIT_TYPE:
|
case PostFilterUsage.MULTIREDDIT_TYPE:
|
||||||
textInputEditText.setHint(R.string.settings_tab_multi_reddit_name);
|
textInputEditText.setHint(R.string.settings_tab_multi_reddit_name);
|
||||||
|
titleStringId = R.string.multi_reddit;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +153,7 @@ public class PostFilterUsageListingActivity extends BaseActivity {
|
|||||||
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
||||||
}
|
}
|
||||||
new MaterialAlertDialogBuilder(this, R.style.MaterialAlertDialogTheme)
|
new MaterialAlertDialogBuilder(this, R.style.MaterialAlertDialogTheme)
|
||||||
.setTitle(R.string.edit_post_filter_name_of_usage_info)
|
.setTitle(titleStringId)
|
||||||
.setView(dialogView)
|
.setView(dialogView)
|
||||||
.setPositiveButton(R.string.ok, (editTextDialogInterface, i1)
|
.setPositiveButton(R.string.ok, (editTextDialogInterface, i1)
|
||||||
-> {
|
-> {
|
||||||
|
Loading…
Reference in New Issue
Block a user