mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Update to Material Design library 1.1.0
This commit is contained in:
		| @@ -30,7 +30,7 @@ class ReaderColorFilterSheet(activity: ReaderActivity) : BottomSheetDialog(activ | ||||
|  | ||||
|     private val preferences by injectLazy<PreferencesHelper>() | ||||
|  | ||||
|     private var behavior: BottomSheetBehavior<*>? = null | ||||
|     private var sheetBehavior: BottomSheetBehavior<*>? = null | ||||
|  | ||||
|     /** | ||||
|      * Subscriptions used for this dialog | ||||
| @@ -51,7 +51,7 @@ class ReaderColorFilterSheet(activity: ReaderActivity) : BottomSheetDialog(activ | ||||
|         val view = activity.layoutInflater.inflate(R.layout.reader_color_filter_sheet, null) | ||||
|         setContentView(view) | ||||
|  | ||||
|         behavior = BottomSheetBehavior.from(view.parent as ViewGroup) | ||||
|         sheetBehavior = BottomSheetBehavior.from(view.parent as ViewGroup) | ||||
|  | ||||
|         // Initialize subscriptions. | ||||
|         subscriptions += preferences.colorFilter().asObservable() | ||||
| @@ -138,8 +138,8 @@ class ReaderColorFilterSheet(activity: ReaderActivity) : BottomSheetDialog(activ | ||||
|  | ||||
|     override fun onStart() { | ||||
|         super.onStart() | ||||
|         behavior?.skipCollapsed = true | ||||
|         behavior?.state = BottomSheetBehavior.STATE_EXPANDED | ||||
|         sheetBehavior?.skipCollapsed = true | ||||
|         sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED | ||||
|     } | ||||
|  | ||||
|     override fun onDetachedFromWindow() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user