pull/49/head
kunfei 5 years ago
parent 9ce3d146d9
commit c917671e3f
  1. 6
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -16,6 +16,7 @@ import io.legado.app.constant.Bus
import io.legado.app.help.ActivityHelp
import io.legado.app.help.storage.Backup
import io.legado.app.lib.theme.ATH
import io.legado.app.service.BaseReadAloudService
import io.legado.app.service.help.ReadAloud
import io.legado.app.ui.main.bookshelf.BookshelfFragment
import io.legado.app.ui.main.explore.ExploreFragment
@ -78,7 +79,10 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
view_pager_main.currentItem = 0
return true
}
if (!BaseReadAloudService.pause) {
moveTaskToBack(true)
return true
}
}
}
}

Loading…
Cancel
Save