Properly exit

pull/214/head
M66B 1 year ago
parent 58ac3a9a13
commit 2a94a09cea

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

Loading…
Cancel
Save