Skip to content

Commit 04d208d

Browse files
committed
Update MDC-Android to 1.1.0-alpha10
1 parent b179afe commit 04d208d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Diff for: app/src/main/java/com/ricknout/rugbyranker/ui/SportFragment.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ class SportFragment : DaggerAndroidXFragment(R.layout.fragment_sport) {
196196
rankingsViewModel.predictions.value = predictions
197197
predictionBarView.setPredictions(predictions)
198198
if (predictions.isNullOrEmpty()) {
199-
addPredictionFab.show(object : ExtendedFloatingActionButton.OnChangedListener() {
199+
addPredictionFab.show(object : ExtendedFloatingActionButton.OnChangedCallback() {
200200
override fun onShown(extendedFab: ExtendedFloatingActionButton?) {
201201
super.onShown(extendedFab)
202202
predictionBarView.isVisible = false
203203
}
204204
})
205205
} else {
206-
addPredictionFab.hide(object : ExtendedFloatingActionButton.OnChangedListener() {
206+
addPredictionFab.hide(object : ExtendedFloatingActionButton.OnChangedCallback() {
207207
override fun onHidden(extendedFab: ExtendedFloatingActionButton?) {
208208
super.onHidden(extendedFab)
209209
predictionBarView.isVisible = true

Diff for: dependencies.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ext {
3333
]
3434
],
3535
google: [
36-
material: '1.1.0-alpha09',
36+
material: '1.1.0-alpha10',
3737
dagger: '2.24',
3838
ossLicenses: [
3939
ossLicenses: '17.0.0',

Diff for: prediction/src/main/java/com/ricknout/rugbyranker/prediction/ui/PredictionBottomSheetDialogFragment.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ class PredictionBottomSheetDialogFragment : DaggerBottomSheetDialogFragment() {
8585
@SuppressWarnings("VisibleForTests", "RestrictedApi")
8686
override fun onActivityCreated(savedInstanceState: Bundle?) {
8787
super.onActivityCreated(savedInstanceState)
88-
(requireDialog() as BottomSheetDialog).behavior.disableShapeAnimations()
88+
(requireDialog() as BottomSheetDialog).apply {
89+
behavior.disableShapeAnimations()
90+
dismissWithAnimation = true
91+
}
8992
}
9093

9194
override fun onSaveInstanceState(outState: Bundle) {

0 commit comments

Comments
 (0)