From b9d83dcad4eb1f17d8f6f2261e4a093b7afacc30 Mon Sep 17 00:00:00 2001 From: vadym Date: Thu, 6 Aug 2020 23:07:54 -0700 Subject: [PATCH] 1. methods log --- .../java/io/github/chronosx88/yggdrasil/MainActivity.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index af0e46c..3322dcc 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -141,8 +141,12 @@ class MainActivity : AppCompatActivity() { } val c: Class<*> = dummy.Dummy::class.java val methods: Array = c.declaredMethods - for (i in methods.indices) { - Log.d(TAG,"The method is: " + methods[i].toString()) + if(methods.isEmpty()){ + Log.d(TAG,"No class methods found in dummy.Dummy") + } else { + for (i in methods.indices) { + Log.d(TAG, "The method is: " + methods[i].toString()) + } } }