This is causing bugs for Xperia XZ Premium device on pre-launch report.
This commit is contained in:
parent
0b07178577
commit
98492fd0c0
@ -2,6 +2,7 @@ package apps.amine.bou.readerforselfoss
|
|||||||
|
|
||||||
import android.animation.Animator
|
import android.animation.Animator
|
||||||
import android.animation.AnimatorListenerAdapter
|
import android.animation.AnimatorListenerAdapter
|
||||||
|
import android.app.ActivityManager
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
@ -284,11 +285,15 @@ class LoginActivity : AppCompatActivity() {
|
|||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
R.id.about -> {
|
R.id.about -> {
|
||||||
LibsBuilder()
|
if (!ActivityManager.isUserAMonkey()){
|
||||||
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
|
LibsBuilder()
|
||||||
.withAboutIconShown(true)
|
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
|
||||||
.withAboutVersionShown(true)
|
.withAboutIconShown(true)
|
||||||
.start(this)
|
.withAboutVersionShown(true)
|
||||||
|
.start(this)
|
||||||
|
} else {
|
||||||
|
Toast.makeText(this@LoginActivity, "You may be a bot", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
R.id.loging_debug -> {
|
R.id.loging_debug -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user