From 803e8cb2f4ff5a48ecc81144e8b51b5b219c0353 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 29 Oct 2017 13:52:43 +0100 Subject: [PATCH] Revert "This is causing bugs for Xperia XZ Premium device on pre-launch report." This reverts commit 98492fd0c0668046e629b2bff8ba2415dac2a677. --- .../amine/bou/readerforselfoss/LoginActivity.kt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/LoginActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/LoginActivity.kt index 697de6c..1054e80 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/LoginActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/LoginActivity.kt @@ -2,7 +2,6 @@ package apps.amine.bou.readerforselfoss import android.animation.Animator import android.animation.AnimatorListenerAdapter -import android.app.ActivityManager import android.content.Context import android.content.Intent import android.content.SharedPreferences @@ -285,15 +284,11 @@ class LoginActivity : AppCompatActivity() { override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.about -> { - if (!ActivityManager.isUserAMonkey()){ - LibsBuilder() - .withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR) - .withAboutIconShown(true) - .withAboutVersionShown(true) - .start(this) - } else { - Toast.makeText(this@LoginActivity, "You may be a bot", Toast.LENGTH_SHORT).show() - } + LibsBuilder() + .withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR) + .withAboutIconShown(true) + .withAboutVersionShown(true) + .start(this) return true } R.id.loging_debug -> {