diff --git a/android/src/main/java/com/hackthedeveloper/live_icon/MethodCallImplementation.java b/android/src/main/java/com/hackthedeveloper/live_icon/MethodCallImplementation.java index ec6cb9d..f0346cf 100644 --- a/android/src/main/java/com/hackthedeveloper/live_icon/MethodCallImplementation.java +++ b/android/src/main/java/com/hackthedeveloper/live_icon/MethodCallImplementation.java @@ -69,10 +69,17 @@ private void switchIconTo(MethodCall call) { PackageManager pm = activity.getPackageManager(); String packageName = activity.getPackageName(); + String mainClassName = activity.getClass().toString().split(" ")[1]; + String realPackageName = ""; + String[] tokens = mainClassName.split("\\."); + for(int j =0;j