Revert "This is causing bugs for Xperia XZ Premium device on pre-launch report."

This reverts commit 98492fd0c0.
This commit is contained in:
Amine 2017-10-29 13:52:43 +01:00
parent 98492fd0c0
commit 803e8cb2f4

View File

@ -2,7 +2,6 @@ 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
@ -285,15 +284,11 @@ 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 -> {
if (!ActivityManager.isUserAMonkey()){
LibsBuilder() LibsBuilder()
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR) .withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
.withAboutIconShown(true) .withAboutIconShown(true)
.withAboutVersionShown(true) .withAboutVersionShown(true)
.start(this) .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 -> {