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