mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Easy bug fix due to focus
This commit is contained in:
parent
4b78d13568
commit
e099c72cc9
1 changed files with 7 additions and 1 deletions
|
|
@ -208,6 +208,9 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
||||||
} else if (slideOffset == 0){
|
} else if (slideOffset == 0){
|
||||||
transparentView.setClickable(false);
|
transparentView.setClickable(false);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Not to allow user swipe down, she should press back instead
|
||||||
|
//bottomSheetDetailsBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -325,10 +328,13 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
||||||
moreInfo.setVisibility(View.VISIBLE);
|
moreInfo.setVisibility(View.VISIBLE);
|
||||||
break;
|
break;
|
||||||
case (BottomSheetBehavior.STATE_HIDDEN):
|
case (BottomSheetBehavior.STATE_HIDDEN):
|
||||||
|
transparentView.setClickable(false);
|
||||||
|
transparentView.setAlpha(0);
|
||||||
|
if (!fabList.isShown()) fabList.show();
|
||||||
closeFabs(isFabOpen);
|
closeFabs(isFabOpen);
|
||||||
hideFAB();
|
hideFAB();
|
||||||
|
this.getView().requestFocus();
|
||||||
moreInfo.setVisibility(View.GONE);
|
moreInfo.setVisibility(View.GONE);
|
||||||
this.getView().clearFocus();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue