mirror of https://github.com/M66B/FairEmail.git
Properly exit
This commit is contained in:
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…
Reference in New Issue