File tree 3 files changed +7
-4
lines changed
app/src/main/java/com/ricknout/rugbyranker/ui
prediction/src/main/java/com/ricknout/rugbyranker/prediction/ui
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,14 @@ class SportFragment : DaggerAndroidXFragment(R.layout.fragment_sport) {
196
196
rankingsViewModel.predictions.value = predictions
197
197
predictionBarView.setPredictions(predictions)
198
198
if (predictions.isNullOrEmpty()) {
199
- addPredictionFab.show(object : ExtendedFloatingActionButton .OnChangedListener () {
199
+ addPredictionFab.show(object : ExtendedFloatingActionButton .OnChangedCallback () {
200
200
override fun onShown (extendedFab : ExtendedFloatingActionButton ? ) {
201
201
super .onShown(extendedFab)
202
202
predictionBarView.isVisible = false
203
203
}
204
204
})
205
205
} else {
206
- addPredictionFab.hide(object : ExtendedFloatingActionButton .OnChangedListener () {
206
+ addPredictionFab.hide(object : ExtendedFloatingActionButton .OnChangedCallback () {
207
207
override fun onHidden (extendedFab : ExtendedFloatingActionButton ? ) {
208
208
super .onHidden(extendedFab)
209
209
predictionBarView.isVisible = true
Original file line number Diff line number Diff line change 33
33
]
34
34
],
35
35
google : [
36
- material : ' 1.1.0-alpha09 ' ,
36
+ material : ' 1.1.0-alpha10 ' ,
37
37
dagger : ' 2.24' ,
38
38
ossLicenses : [
39
39
ossLicenses : ' 17.0.0' ,
Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ class PredictionBottomSheetDialogFragment : DaggerBottomSheetDialogFragment() {
85
85
@SuppressWarnings(" VisibleForTests" , " RestrictedApi" )
86
86
override fun onActivityCreated (savedInstanceState : Bundle ? ) {
87
87
super .onActivityCreated(savedInstanceState)
88
- (requireDialog() as BottomSheetDialog ).behavior.disableShapeAnimations()
88
+ (requireDialog() as BottomSheetDialog ).apply {
89
+ behavior.disableShapeAnimations()
90
+ dismissWithAnimation = true
91
+ }
89
92
}
90
93
91
94
override fun onSaveInstanceState (outState : Bundle ) {
You can’t perform that action at this time.
0 commit comments