mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 06:53:01 +00:00
Fix crash caused by incorrect Toast creation
This commit is contained in:
parent
6de007e3b1
commit
bf825df221
1 changed files with 2 additions and 6 deletions
|
@ -230,9 +230,7 @@ public class ImportExportPreferencesFragment extends PreferencesFragment {
|
||||||
if (!checkBoxExportAllGroups.isChecked()) {
|
if (!checkBoxExportAllGroups.isChecked()) {
|
||||||
_exportFilter = getVaultEntryFilter(groupsSelection);
|
_exportFilter = getVaultEntryFilter(groupsSelection);
|
||||||
if (_exportFilter == null) {
|
if (_exportFilter == null) {
|
||||||
Toast noGroupsSelected = new Toast(requireContext());
|
Toast.makeText(requireContext(), R.string.export_no_groups_selected, Toast.LENGTH_SHORT).show();
|
||||||
noGroupsSelected.setText(R.string.export_no_groups_selected);
|
|
||||||
noGroupsSelected.show();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,9 +257,7 @@ public class ImportExportPreferencesFragment extends PreferencesFragment {
|
||||||
if (!checkBoxExportAllGroups.isChecked()) {
|
if (!checkBoxExportAllGroups.isChecked()) {
|
||||||
_exportFilter = getVaultEntryFilter(groupsSelection);
|
_exportFilter = getVaultEntryFilter(groupsSelection);
|
||||||
if (_exportFilter == null) {
|
if (_exportFilter == null) {
|
||||||
Toast noGroupsSelected = new Toast(requireContext());
|
Toast.makeText(requireContext(), R.string.export_no_groups_selected, Toast.LENGTH_SHORT).show();
|
||||||
noGroupsSelected.setText(R.string.export_no_groups_selected);
|
|
||||||
noGroupsSelected.show();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue