File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/main/java/com/kira/malware Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ android {
2626 minSdk 29
2727 targetSdk 35
2828 versionCode 5
29- versionName ' 5.2.1 '
29+ versionName ' 5.2.2 '
3030 testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
3131 }
3232
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ protected void save() {
103103 protected void registerStartActivityForResult () {
104104 this .activityForResultLauncher = this .registerForActivityResult (new ActivityResultContracts .StartActivityForResult (), activityResult -> {
105105 if (this .log != null ) {
106- this .log .appendText (TextController .dumpActivityResult (activityResult . getResultCode (), activityResult . getData () ));
106+ this .log .appendText (TextController .dumpActivityResult (activityResult ));
107107 }
108108 });
109109 }
Original file line number Diff line number Diff line change 1919import android .text .SpannableStringBuilder ;
2020import android .view .accessibility .AccessibilityNodeInfo ;
2121
22+ import androidx .activity .result .ActivityResult ;
2223import androidx .annotation .NonNull ;
23- import androidx .annotation .Nullable ;
2424
2525import com .kira .malware .models .ActivitiesModel ;
2626import com .kira .malware .models .ActivityModel ;
@@ -101,9 +101,11 @@ public static SpannableStringBuilder dumpNotification(@NonNull Notification noti
101101 }
102102
103103 @ NonNull
104- public static SpannableStringBuilder dumpActivityResult (int code , @ Nullable Intent intent ) {
104+ public static SpannableStringBuilder dumpActivityResult (@ NonNull ActivityResult activityResult ) {
105105 SpannableStringBuilder text = new SpannableStringBuilder ();
106+ int code = activityResult .getResultCode ();
106107 text .append ((code == -1 ? GREEN : RED ).all (String .format ("Activity Result: %s" , activityResultCodeToString (code ))));
108+ Intent intent = activityResult .getData ();
107109 if (intent != null ) {
108110 text .append ("\n " ).append (dumpIntent (intent ));
109111 }
You can’t perform that action at this time.
0 commit comments