Fix splash lifecycle crash
Use a plain Activity for SplashActivity because it only redirects to the camera screen and finishes immediately. This avoids AppCompat lifecycle dispatch crashing on older Android versions when the activity is destroyed before AndroidX moves it out of INITIALIZED.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package de.markusfisch.android.binaryeye.activity
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
||||
class SplashActivity : AppCompatActivity() {
|
||||
class SplashActivity : Activity() {
|
||||
override fun onCreate(state: Bundle?) {
|
||||
super.onCreate(state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user