Merge pull request #6515 from 21pages/android_service_wakelock
android video service wakelock
This commit is contained in:
commit
dbcf1fdb6f
7 changed files with 87 additions and 9 deletions
|
|
@ -211,6 +211,7 @@ class MainService : Service() {
|
|||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
Log.d(logTag,"MainService onCreate")
|
||||
init(this)
|
||||
HandlerThread("Service", Process.THREAD_PRIORITY_BACKGROUND).apply {
|
||||
start()
|
||||
serviceLooper = looper
|
||||
|
|
@ -315,7 +316,6 @@ class MainService : Service() {
|
|||
mediaProjection =
|
||||
mediaProjectionManager.getMediaProjection(Activity.RESULT_OK, it)
|
||||
checkMediaPermission()
|
||||
init(this)
|
||||
_isReady = true
|
||||
} ?: let {
|
||||
Log.d(logTag, "getParcelableExtra intent null, invoke requestMediaProjection")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue