Properly exit

This commit is contained in:
M66B 2023-10-31 18:40:10 +01:00
parent 58ac3a9a13
commit 2a94a09cea
1 changed files with 5 additions and 1 deletions

View File

@ -531,7 +531,11 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
btnInbox.setOnClickListener(new View.OnClickListener() { btnInbox.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
((FragmentBase) getParentFragment()).finish(); FragmentActivity activity = getActivity();
if (activity instanceof ActivitySetup)
((ActivitySetup) activity).onExit();
else
((FragmentBase) getParentFragment()).finish();
} }
}); });