mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fix stacking of Settings menu in the reader on multiple taps (#8002)
* fix : conditional check added to avoid stacking of dialog In onClickListener, bottom sheet is being opened depending on status of dialog sheet, if it's showing or not. * chore : refactored conditional logic * Update ReaderActivity.kt
This commit is contained in:
		@@ -508,9 +508,11 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
 | 
			
		||||
        // Settings sheet
 | 
			
		||||
        with(binding.actionSettings) {
 | 
			
		||||
            setTooltip(R.string.action_settings)
 | 
			
		||||
 | 
			
		||||
            val readerSettingSheetDialog = ReaderSettingsSheet(this@ReaderActivity)
 | 
			
		||||
            setOnClickListener {
 | 
			
		||||
                ReaderSettingsSheet(this@ReaderActivity).show()
 | 
			
		||||
                if (!readerSettingSheetDialog.isShowing()) {
 | 
			
		||||
                    readerSettingSheetDialog.show()
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            setOnLongClickListener {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user