mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 10:26:53 -04:00
#3740 Read aloud will stop in closed tab
This commit is contained in:
parent
28945412f3
commit
a1a03b2d57
@ -1192,6 +1192,7 @@ abstract class CoreReaderFragment :
|
||||
}
|
||||
|
||||
private fun closeTab(index: Int) {
|
||||
if (currentWebViewIndex == index) onReadAloudStop()
|
||||
tempZimFileForUndo = zimReaderContainer?.zimFile
|
||||
tempWebViewForUndo = webViewList[index]
|
||||
webViewList.removeAt(index)
|
||||
@ -1610,6 +1611,7 @@ abstract class CoreReaderFragment :
|
||||
|
||||
@OnClick(R2.id.tab_switcher_close_all_tabs)
|
||||
fun closeAllTabs() {
|
||||
onReadAloudStop()
|
||||
closeAllTabsButton?.rotate()
|
||||
tempZimFileForUndo = zimReaderContainer?.zimFile
|
||||
tempWebViewListForUndo.apply {
|
||||
|
Loading…
x
Reference in New Issue
Block a user