mirror of
https://github.com/beemdevelopment/Aegis
synced 2024-09-06 16:03:30 +00:00
Fix crash caused by incorrect Toast creation
This commit is contained in:
parent
6de007e3b1
commit
bf825df221
|
@ -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…
Reference in a new issue