mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Properly exit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user