mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 06:37:16 +02:00
Update:Show status bar when ereader toolbar is shown
This commit is contained in:
@@ -201,6 +201,9 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
|
|||||||
super.onCreate()
|
super.onCreate()
|
||||||
ctx = this
|
ctx = this
|
||||||
|
|
||||||
|
// Initialize Paper
|
||||||
|
DbManager.initialize(ctx)
|
||||||
|
|
||||||
// Initialize widget
|
// Initialize widget
|
||||||
DeviceManager.initializeWidgetUpdater(ctx)
|
DeviceManager.initializeWidgetUpdater(ctx)
|
||||||
|
|
||||||
|
|||||||
@@ -39,10 +39,9 @@ export default {
|
|||||||
show: {
|
show: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.showingToolbar = false
|
|
||||||
this.comicHasMetadata = false
|
this.comicHasMetadata = false
|
||||||
this.registerListeners()
|
this.registerListeners()
|
||||||
this.$showHideStatusBar(false)
|
this.hideToolbar()
|
||||||
} else {
|
} else {
|
||||||
this.unregisterListeners()
|
this.unregisterListeners()
|
||||||
this.$showHideStatusBar(true)
|
this.$showHideStatusBar(true)
|
||||||
@@ -199,9 +198,11 @@ export default {
|
|||||||
},
|
},
|
||||||
showToolbar() {
|
showToolbar() {
|
||||||
this.showingToolbar = true
|
this.showingToolbar = true
|
||||||
|
this.$showHideStatusBar(true)
|
||||||
},
|
},
|
||||||
hideToolbar() {
|
hideToolbar() {
|
||||||
this.showingToolbar = false
|
this.showingToolbar = false
|
||||||
|
this.$showHideStatusBar(false)
|
||||||
},
|
},
|
||||||
toggleToolbar() {
|
toggleToolbar() {
|
||||||
if (this.showingToolbar) this.hideToolbar()
|
if (this.showingToolbar) this.hideToolbar()
|
||||||
|
|||||||
Reference in New Issue
Block a user