Search in sources :

Example 1 with AbstractBottomSheetFragment

use of de.westnordost.streetcomplete.quests.AbstractBottomSheetFragment in project StreetComplete by westnordost.

the class MainActivity method onBackPressed.

@Override
public void onBackPressed() {
    AbstractBottomSheetFragment f = getBottomSheetFragment();
    if (f != null) {
        f.onClickClose(() -> {
            mapFragment.removeQuestGeometry();
            mapFragment.setIsFollowingPosition(isFollowingPosition);
            MainActivity.super.onBackPressed();
        });
    } else {
        super.onBackPressed();
    }
}
Also used : AbstractBottomSheetFragment(de.westnordost.streetcomplete.quests.AbstractBottomSheetFragment)

Aggregations

AbstractBottomSheetFragment (de.westnordost.streetcomplete.quests.AbstractBottomSheetFragment)1