Fixed back button behavior
This commit is contained in:
parent
d681498dd1
commit
9bb3e65387
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,9 @@ import android.view.Window;
|
||||||
|
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.base.BaseOsmAndDialogFragment;
|
import net.osmand.plus.base.BaseOsmAndDialogFragment;
|
||||||
|
import net.osmand.plus.wikivoyage.explore.WikivoyageExploreDialogFragment;
|
||||||
|
|
||||||
|
import static android.support.v4.app.FragmentManager.POP_BACK_STACK_INCLUSIVE;
|
||||||
|
|
||||||
public class WikivoyageBaseDialogFragment extends BaseOsmAndDialogFragment {
|
public class WikivoyageBaseDialogFragment extends BaseOsmAndDialogFragment {
|
||||||
|
|
||||||
|
@ -89,7 +92,7 @@ public class WikivoyageBaseDialogFragment extends BaseOsmAndDialogFragment {
|
||||||
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
|
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
dismiss();
|
getFragmentManager().popBackStackImmediate(WikivoyageExploreDialogFragment.TAG, 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue