| | | | |
| Offset 30, 96 lines modified | Offset 30, 96 lines modified |
| 30 | .field·public·final·titleWithoutEntity:Ljava/lang/String; | 30 | .field·public·final·titleWithoutEntity:Ljava/lang/String; |
| | |
| | |
| 31 | #·direct·methods | 31 | #·direct·methods |
| 32 | .method·static·constructor·<clinit>()V | 32 | .method·static·constructor·<clinit>()V |
| 33 | ····.locals·1 | 33 | ····.locals·1 |
| | |
| 34 | ····.line·40 | 34 | ····.line·39 |
| 35 | ····sget-object·v0,·Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;->INSTANCE:Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g; | 35 | ····sget-object·v0,·Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g;->INSTANCE:Lcom/android/textclassifier/common/intent/-$$Lambda$LabeledIntent$Ef5QLBfEhrkX4H2Of8KdcPhmr-g; |
| | |
| 36 | ····sput-object·v0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; | 36 | ····sput-object·v0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; |
| | |
| 37 | ····return-void | 37 | ····return-void |
| 38 | .end·method | 38 | .end·method |
| | |
| 39 | .method·public·constructor·<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/content/Intent;I)V | 39 | .method·public·constructor·<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/content/Intent;I)V |
| 40 | ····.locals·1 | 40 | ····.locals·1 |
| | |
| 41 | ····.line·73 | 41 | ····.line·72 |
| 42 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 42 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| | |
| 43 | ····.line·74 | 43 | ····.line·73 |
| 44 | ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 44 | ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| 45 | ····move-result·v0 | 45 | ····move-result·v0 |
| | |
| 46 | ····if-eqz·v0,·:cond_1 | 46 | ····if-eqz·v0,·:cond_1 |
| | |
| 47 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 47 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| 48 | ····move-result·v0 | 48 | ····move-result·v0 |
| | |
| 49 | ····if-nez·v0,·:cond_0 | 49 | ····if-nez·v0,·:cond_0 |
| | |
| 50 | ····goto·:goto_0 | 50 | ····goto·:goto_0 |
| | |
| 51 | ····.line·75 | 51 | ····.line·74 |
| 52 | ····:cond_0 | 52 | ····:cond_0 |
| 53 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; | 53 | ····new-instance·p0,·Ljava/lang/IllegalArgumentException; |
| | |
| 54 | ····const-string·p1,·"titleWithEntity·and·titleWithoutEntity·should·not·be·both·null" | 54 | ····const-string·p1,·"titleWithEntity·and·titleWithoutEntity·should·not·be·both·null" |
| | |
| 55 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | 55 | ····invoke-direct·{p0,·p1},·Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V |
| | |
| 56 | ····throw·p0 | 56 | ····throw·p0 |
| | |
| 57 | ····.line·78 | 57 | ····.line·77 |
| 58 | ····:cond_1 | 58 | ····:cond_1 |
| 59 | ····:goto_0 | 59 | ····:goto_0 |
| 60 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String; | 60 | ····iput-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String; |
| | |
| 61 | ····.line·79 | 61 | ····.line·78 |
| 62 | ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; | 62 | ····iput-object·p2,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; |
| | |
| 63 | ····.line·80 | 63 | ····.line·79 |
| 64 | ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; | 64 | ····invoke-static·{p3},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
| | |
| 65 | ····check-cast·p3,·Ljava/lang/String; | 65 | ····check-cast·p3,·Ljava/lang/String; |
| | |
| 66 | ····iput-object·p3,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String; | 66 | ····iput-object·p3,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String; |
| | |
| 67 | ····.line·81 | 67 | ····.line·80 |
| 68 | ····iput-object·p4,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; | 68 | ····iput-object·p4,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; |
| | |
| 69 | ····.line·82 | 69 | ····.line·81 |
| 70 | ····invoke-static·{p5},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; | 70 | ····invoke-static·{p5},·Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
| | |
| 71 | ····check-cast·p5,·Landroid/content/Intent; | 71 | ····check-cast·p5,·Landroid/content/Intent; |
| | |
| 72 | ····iput-object·p5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | 72 | ····iput-object·p5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; |
| | |
| 73 | ····.line·83 | 73 | ····.line·82 |
| 74 | ····iput·p6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I | 74 | ····iput·p6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I |
| | |
| 75 | ····return-void | 75 | ····return-void |
| 76 | .end·method | 76 | .end·method |
| | |
| 77 | .method·private·static·createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat; | 77 | .method·private·static·createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat; |
| 78 | ····.locals·1 | 78 | ····.locals·1 |
| | |
| 79 | ····const/4·v0,·0x0 | 79 | ····const/4·v0,·0x0 |
| | |
| 80 | ····.line·202 | 80 | ····.line·157 |
| 81 | ····:try_start_0 | 81 | ····:try_start_0 |
| 82 | ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context; | 82 | ····invoke-virtual·{p0,·p1,·v0},·Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context; |
| | |
| 83 | ····move-result-object·p0 | 83 | ····move-result-object·p0 |
| | |
| 84 | ····.line·203 | 84 | ····.line·158 |
| 85 | ····invoke-static·{p0,·p2},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; | 85 | ····invoke-static·{p0,·p2},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; |
| | |
| 86 | ····move-result-object·p0 | 86 | ····move-result-object·p0 |
| 87 | ····:try_end_0 | 87 | ····:try_end_0 |
| 88 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 | 88 | ····.catch·Landroid/content/pm/PackageManager$NameNotFoundException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| | |
| 89 | ····return-object·p0 | 89 | ····return-object·p0 |
| Offset 127, 292 lines modified | Offset 127, 169 lines modified |
| 127 | ····:catch_0 | 127 | ····:catch_0 |
| 128 | ····move-exception·p0 | 128 | ····move-exception·p0 |
| | |
| 129 | ····const-string·p1,·"LabeledIntent" | 129 | ····const-string·p1,·"LabeledIntent" |
| | |
| 130 | ····const-string·p2,·"createIconFromPackage:·failed·to·create·package·context" | 130 | ····const-string·p2,·"createIconFromPackage:·failed·to·create·package·context" |
| | |
| 131 | ····.line·205 | 131 | ····.line·160 |
| 132 | ····invoke-static·{p1,·p2,·p0},·Lcom/android/textclassifier/common/base/TcLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V | 132 | ····invoke-static·{p1,·p2,·p0},·Lcom/android/textclassifier/common/base/TcLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V |
| | |
| 133 | ····const/4·p0,·0x0 | 133 | ····const/4·p0,·0x0 |
| | |
| 134 | ····return-object·p0 | 134 | ····return-object·p0 |
| 135 | .end·method | 135 | .end·method |
| | |
| 136 | .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent; | 136 | .method·private·static·createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent; |
| 137 | ····.locals·1 | 137 | ····.locals·1 |
| | |
| 138 | ····const/high16·v0,·0x8000000 | 138 | ····const/high16·v0,·0x8000000 |
| | |
| 139 | ····.line·212 | 139 | ····.line·167 |
| 140 | ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent; | 140 | ····invoke-static·{p0,·p2,·p1,·v0},·Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent; |
| | |
| 141 | ····move-result-object·p0 | 141 | ····move-result-object·p0 |
| | |
| 142 | ····return-object·p0 | 142 | ····return-object·p0 |
| 143 | .end·method | 143 | .end·method |
| | |
| 144 | .method·private·createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; | |
| 145 | ····.locals·1 | |
| | |
| 146 | ····.line·161 | |
| 147 | ····iget·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I | |
| | |
| 148 | ····invoke-static·{p1,·p2,·v0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent; | |
| | |
| 149 | ····move-result-object·p2 | |
| | |
| 150 | ····if-nez·p6,·:cond_0 | |
| | |
| 151 | ····.line·162 | |
| 152 | ····sget-object·p6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; | |
| | |
| 153 | ····.line·163 | |
| 154 | ····:cond_0 | |
| 155 | ····invoke-interface·{p6,·p0,·p5},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; | |
| | |
| 156 | ····move-result-object·p6 | |
| | |
| 157 | ····.line·164 | |
| 158 | ····invoke-static·{p6},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | |
| | |
| 159 | ····move-result·v0 | |
| | |
| 160 | ····if-eqz·v0,·:cond_1 | |
| | |
| 161 | ····const-string·p6,·"LabeledIntent" | |
| | |
| 162 | ····const-string·v0,·"Custom·titleChooser·return·null,·fallback·to·the·default·titleChooser" | |
| | |
| 163 | ····.line·165 | |
| 164 | ····invoke-static·{p6,·v0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V | |
| | |
| 165 | ····.line·166 | |
| 166 | ····sget-object·p6,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; | |
| | |
| 167 | ····invoke-interface·{p6,·p0,·p5},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; | |
| | |
| 168 | ····move-result-object·p6 | |
| | |
| 169 | ····.line·168 | |
| 170 | ····:cond_1 | |
| 171 | ····new-instance·v0,·Landroidx/core/app/RemoteActionCompat; | |
| | |
| 172 | ····.line·172 | |
| 173 | ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | |
| | |
| 174 | ····move-result-object·p1 | |
| | |
| 175 | ····invoke-direct·{p0,·p5,·p1},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; | |
| | |
| 176 | ····move-result-object·p0 | |
| | |
| 177 | ····invoke-direct·{v0,·p3,·p6,·p0,·p2},·Landroidx/core/app/RemoteActionCompat;-><init>(Landroidx/core/graphics/drawable/IconCompat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V | |
| | |
| 178 | ····.line·174 | |
| 179 | ····invoke-virtual·{v0,·p4},·Landroidx/core/app/RemoteActionCompat;->setShouldShowIcon(Z)V | |
| | |
| 180 | ····return-object·v0 | |
| 181 | .end·method | |
| | |
| 182 | .method·private·static·getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; | 144 | .method·private·static·getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; |
| 183 | ····.locals·3 | 145 | ····.locals·3 |
| | |
| 184 | ····const/4·v0,·0x0 | 146 | ····.line·173 |
| | 147 | ····iget-object·v0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| | 148 | ····const/4·v1,·0x0 |
| 185 | ····if-eqz·p0,·:cond_3 | |
| | |
| 186 | ····.line·219 | |
| 187 | ····iget-object·v1,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | |
| | |
| 188 | ····if-nez·v1,·:cond_0 | 149 | ····if-nez·v0,·:cond_0 |
| | |
| 189 | ····goto·:goto_0 | 150 | ····return-object·v1 |
| | |
| 190 | ····.line·222 | 151 | ····.line·176 |
| 191 | ····:cond_0 | 152 | ····:cond_0 |
| 192 | ····iget-object·v1,·v1,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; | 153 | ····iget-object·v0,·v0,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; |
| | |
| 193 | ····const-string·v2,·"android" | 154 | ····const-string·v2,·"android" |
| | |
| 194 | ····invoke-virtual·{v2,·v1},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 155 | ····invoke-virtual·{v2,·v0},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| | |
| 195 | ····move-result·v1 | 156 | ····move-result·v0 |
| | |
| 196 | ····if-eqz·v1,·:cond_1 | 157 | ····if-eqz·v0,·:cond_1 |
| | |
| 197 | ····return-object·v0 | 158 | ····return-object·v1 |
| | |
| 198 | ····.line·225 | 159 | ····.line·179 |
| 199 | ····:cond_1 | 160 | ····:cond_1 |
| 200 | ····iget-object·p0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | 161 | ····iget-object·p0,·p0,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 201 | ····iget-object·p0,·p0,·Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo; | 162 | ····iget-object·p0,·p0,·Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo; |
| | |
| 202 | ····if-nez·p0,·:cond_2 | 163 | ····if-nez·p0,·:cond_2 |
| | |
| 203 | ····return-object·v0 | 164 | ····return-object·v1 |
| | |
| 204 | ····.line·228 | 165 | ····.line·182 |
| 205 | ····:cond_2 | 166 | ····:cond_2 |
| 206 | ····invoke-virtual·{p1,·p0},·Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence; | 167 | ····invoke-virtual·{p1,·p0},·Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence; |
| | |
| 207 | ····move-result-object·p0 | 168 | ····move-result-object·p0 |
| | |
| 208 | ····invoke-interface·{p0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 169 | ····invoke-interface·{p0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| | |
| 209 | ····move-result-object·p0 | 170 | ····move-result-object·p0 |
| | |
| 210 | ····return-object·p0 | 171 | ····return-object·p0 |
| | |
| 211 | ····:cond_3 | |
| 212 | ····:goto_0 | |
| 213 | ····return-object·v0 | |
| 214 | .end·method | 172 | .end·method |
| | |
| 215 | .method·private·static·hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z | 173 | .method·private·static·hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z |
| 216 | ····.locals·2 | 174 | ····.locals·2 |
| | |
| 217 | ····.line·232 | 175 | ····.line·186 |
| 218 | ····iget-boolean·v0,·p1,·Landroid/content/pm/ActivityInfo;->exported:Z | 176 | ····iget-boolean·v0,·p1,·Landroid/content/pm/ActivityInfo;->exported:Z |
| | |
| 219 | ····const/4·v1,·0x0 | 177 | ····const/4·v1,·0x0 |
| | |
| 220 | ····if-nez·v0,·:cond_0 | 178 | ····if-nez·v0,·:cond_0 |
| | |
| 221 | ····return·v1 | 179 | ····return·v1 |
| | |
| 222 | ····.line·235 | 180 | ····.line·189 |
| 223 | ····:cond_0 | 181 | ····:cond_0 |
| 224 | ····iget-object·p1,·p1,·Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String; | 182 | ····iget-object·p1,·p1,·Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String; |
| | |
| 225 | ····const/4·v0,·0x1 | 183 | ····const/4·v0,·0x1 |
| | |
| 226 | ····if-nez·p1,·:cond_1 | 184 | ····if-nez·p1,·:cond_1 |
| | |
| 227 | ····return·v0 | 185 | ····return·v0 |
| | |
| 228 | ····.line·238 | 186 | ····.line·192 |
| 229 | ····:cond_1 | 187 | ····:cond_1 |
| 230 | ····invoke-static·{p0,·p1},·Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I | 188 | ····invoke-static·{p0,·p1},·Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I |
| | |
| 231 | ····move-result·p0 | 189 | ····move-result·p0 |
| | |
| 232 | ····if-nez·p0,·:cond_2 | 190 | ····if-nez·p0,·:cond_2 |
| | |
| 233 | ····move·v1,·v0 | 191 | ····move·v1,·v0 |
| | |
| 234 | ····:cond_2 | 192 | ····:cond_2 |
| 235 | ····return·v1 | 193 | ····return·v1 |
| 236 | .end·method | 194 | .end·method |
| | |
| 237 | .method·private·isWebIntent()Z | |
| 238 | ····.locals·2 | |
| | |
| 239 | ····.line·179 | |
| 240 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | |
| | |
| 241 | ····invoke-virtual·{v0},·Landroid/content/Intent;->getAction()Ljava/lang/String; | |
| | |
| 242 | ····move-result-object·v0 | |
| | |
| 243 | ····const-string·v1,·"android.intent.action.VIEW" | |
| | |
| 244 | ····invoke-virtual·{v1,·v0},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | |
| | |
| 245 | ····move-result·v0 | |
| | |
| 246 | ····const/4·v1,·0x0 | |
| | |
| 247 | ····if-nez·v0,·:cond_0 | |
| | |
| 248 | ····return·v1 | |
| | |
| 249 | ····.line·182 | |
| 250 | ····:cond_0 | |
| 251 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | |
| | |
| 252 | ····invoke-virtual·{p0},·Landroid/content/Intent;->getScheme()Ljava/lang/String; | |
| | |
| 253 | ····move-result-object·p0 | |
| | |
| 254 | ····const-string·v0,·"http" | |
| | |
| 255 | ····.line·183 | |
| 256 | ····invoke-static·{p0,·v0},·Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z | |
| | |
| 257 | ····move-result·v0 | |
| | |
| 258 | ····if-nez·v0,·:cond_1 | |
| | |
| 259 | ····const-string·v0,·"https" | |
| | |
| 260 | ····invoke-static·{p0,·v0},·Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z | |
| | |
| 261 | ····move-result·p0 | |
| | |
| 262 | ····if-eqz·p0,·:cond_2 | |
| | |
| 263 | ····:cond_1 | |
| 264 | ····const/4·v1,·0x1 | |
| | |
| 265 | ····:cond_2 | |
| 266 | ····return·v1 | |
| 267 | .end·method | |
| | |
| 268 | .method·static·synthetic·lambda$static$0(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; | 195 | .method·static·synthetic·lambda$static$0(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; |
| 269 | ····.locals·0 | 196 | ····.locals·0 |
| | |
| 270 | ····.line·42 | 197 | ····.line·41 |
| 271 | ····iget-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; | 198 | ····iget-object·p1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; |
| | |
| 272 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 199 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| 273 | ····move-result·p1 | 200 | ····move-result·p1 |
| | |
| 274 | ····if-nez·p1,·:cond_0 | 201 | ····if-nez·p1,·:cond_0 |
| | |
| 275 | ····.line·43 | 202 | ····.line·42 |
| 276 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; | 203 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithEntity:Ljava/lang/String; |
| | |
| 277 | ····return-object·p0 | 204 | ····return-object·p0 |
| | |
| 278 | ····.line·45 | 205 | ····.line·44 |
| 279 | ····:cond_0 | 206 | ····:cond_0 |
| 280 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String; | 207 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->titleWithoutEntity:Ljava/lang/String; |
| | |
| 281 | ····return-object·p0 | 208 | ····return-object·p0 |
| 282 | .end·method | 209 | .end·method |
| | |
| 283 | .method·private·resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; | 210 | .method·private·resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; |
| 284 | ····.locals·1 | 211 | ····.locals·1 |
| | |
| 285 | ····.line·188 | 212 | ····.line·143 |
| 286 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; | 213 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; |
| | |
| 287 | ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 214 | ····invoke-static·{v0},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| 288 | ····move-result·v0 | 215 | ····move-result·v0 |
| | |
| 289 | ····if-nez·v0,·:cond_0 | 216 | ····if-nez·v0,·:cond_0 |
| | |
| 290 | ····.line·190 | 217 | ····.line·145 |
| 291 | ····invoke-static·{p1,·p2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; | 218 | ····invoke-static·{p1,·p2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->getApplicationName(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; |
| | |
| 292 | ····move-result-object·p1 | 219 | ····move-result-object·p1 |
| | |
| 293 | ····.line·191 | 220 | ····.line·146 |
| 294 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 221 | ····invoke-static·{p1},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| 295 | ····move-result·p2 | 222 | ····move-result·p2 |
| | |
| 296 | ····if-nez·p2,·:cond_0 | 223 | ····if-nez·p2,·:cond_0 |
| | |
| 297 | ····.line·192 | 224 | ····.line·147 |
| 298 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; | 225 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->descriptionWithAppName:Ljava/lang/String; |
| | |
| 299 | ····const/4·p2,·0x1 | 226 | ····const/4·p2,·0x1 |
| | |
| 300 | ····new-array·p2,·p2,·[Ljava/lang/Object; | 227 | ····new-array·p2,·p2,·[Ljava/lang/Object; |
| | |
| 301 | ····const/4·v0,·0x0 | 228 | ····const/4·v0,·0x0 |
| Offset 421, 237 lines modified | Offset 298, 224 lines modified |
| | |
| 421 | ····invoke-static·{p0,·p2},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; | 298 | ····invoke-static·{p0,·p2},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; |
| | |
| 422 | ····move-result-object·p0 | 299 | ····move-result-object·p0 |
| | |
| 423 | ····return-object·p0 | 300 | ····return-object·p0 |
| | |
| 424 | ····.line·195 | 301 | ····.line·150 |
| 425 | ····:cond_0 | 302 | ····:cond_0 |
| 426 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String; | 303 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->description:Ljava/lang/String; |
| | |
| 427 | ····return-object·p0 | 304 | ····return-object·p0 |
| 428 | .end·method | 305 | .end·method |
| | |
| | |
| 429 | #·virtual·methods | 306 | #·virtual·methods |
| 430 | .method·public·resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result; | 307 | .method·public·resolve(Landroid/content/Context;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Lcom/android/textclassifier/common/intent/LabeledIntent$Result; |
| 431 | ····.locals·10 | 308 | ····.locals·9 |
| | |
| 432 | ····.line·94 | 309 | ····.line·93 |
| 433 | ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | 310 | ····invoke-virtual·{p1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; |
| | |
| 434 | ····move-result-object·v0 | 311 | ····move-result-object·v0 |
| | |
| 435 | ····.line·95 | 312 | ····.line·94 |
| 436 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | 313 | ····iget-object·v1,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; |
| | |
| 437 | ····const/4·v2,·0x0 | 314 | ····const/4·v2,·0x0 |
| | |
| 438 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo; | 315 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo; |
| | |
| 439 | ····move-result-object·v8 | 316 | ····move-result-object·v1 |
| | |
| 440 | ····const·v0,·0x1080045 | |
| | |
| 441 | ····const-string·v1,·"LabeledIntent" | |
| | |
| 442 | ····const/4·v3,·0x0 | 317 | ····const/4·v3,·0x0 |
| | |
| 443 | ····if-eqz·v8,·:cond_6 | 318 | ····const-string·v4,·"LabeledIntent" |
| | |
| | 319 | ····if-eqz·v1,·:cond_8 |
| 444 | ····.line·97 | |
| 445 | ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | |
| | |
| 446 | ····if-nez·v4,·:cond_0 | 320 | ····.line·96 |
| | 321 | ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 447 | ····goto/16·:goto_2 | 322 | ····if-nez·v5,·:cond_0 |
| | |
| | 323 | ····goto/16·:goto_1 |
| | |
| 448 | ····.line·119 | 324 | ····.line·100 |
| 449 | ····:cond_0 | 325 | ····:cond_0 |
| 450 | ····invoke-static·{p1,·v4},·Lcom/android/textclassifier/common/intent/LabeledIntent;->hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z | 326 | ····invoke-static·{p1,·v5},·Lcom/android/textclassifier/common/intent/LabeledIntent;->hasPermission(Landroid/content/Context;Landroid/content/pm/ActivityInfo;)Z |
| | |
| 451 | ····move-result·v4 | 327 | ····move-result·v5 |
| | |
| 452 | ····if-nez·v4,·:cond_1 | 328 | ····if-nez·v5,·:cond_1 |
| | |
| 453 | ····.line·120 | 329 | ····.line·101 |
| 454 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 330 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| | |
| 455 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 331 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| | |
| 456 | ····const-string·p1,·"No·permission·to·access:·" | 332 | ····const-string·p1,·"No·permission·to·access:·" |
| | |
| 457 | ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 333 | ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| | |
| 458 | ····iget-object·p1,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | 334 | ····iget-object·p1,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 459 | ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; | 335 | ····invoke-virtual·{p0,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
| | |
| 460 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 336 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| | |
| 461 | ····move-result-object·p0 | 337 | ····move-result-object·p0 |
| | |
| 462 | ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->d(Ljava/lang/String;Ljava/lang/String;)V | 338 | ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->d(Ljava/lang/String;Ljava/lang/String;)V |
| | |
| 463 | ····return-object·v3 | 339 | ····return-object·v3 |
| | |
| 464 | ····.line·124 | 340 | ····.line·105 |
| 465 | ····:cond_1 | 341 | ····:cond_1 |
| 466 | ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | 342 | ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 467 | ····iget-object·v5,·v4,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; | 343 | ····iget-object·v6,·v5,·Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; |
| | |
| 468 | ····.line·125 | 344 | ····.line·106 |
| 469 | ····iget-object·v4,·v4,·Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String; | 345 | ····iget-object·v5,·v5,·Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String; |
| | |
| 470 | ····if-eqz·v5,·:cond_5 | 346 | ····if-eqz·v6,·:cond_7 |
| | |
| 471 | ····if-nez·v4,·:cond_2 | 347 | ····if-nez·v5,·:cond_2 |
| | |
| 472 | ····goto·:goto_1 | 348 | ····goto·:goto_0 |
| | |
| 473 | ····.line·130 | 349 | ····.line·111 |
| 474 | ····:cond_2 | 350 | ····:cond_2 |
| 475 | ····new-instance·v1,·Landroid/content/Intent; | 351 | ····new-instance·v7,·Landroid/content/Intent; |
| | |
| 476 | ····iget-object·v6,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | 352 | ····iget-object·v8,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; |
| | |
| 477 | ····invoke-direct·{v1,·v6},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V | 353 | ····invoke-direct·{v7,·v8},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V |
| | |
| 478 | ····const-string·v6,·"android" | 354 | ····const-string·v8,·"android" |
| | |
| 479 | ····.line·133 | 355 | ····.line·114 |
| 480 | ····invoke-virtual·{v6,·v5},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z | 356 | ····invoke-virtual·{v8,·v6},·Ljava/lang/String;->equals(Ljava/lang/Object;)Z |
| | |
| 481 | ····move-result·v6 | 357 | ····move-result·v8 |
| | |
| 482 | ····if-nez·v6,·:cond_3 | 358 | ····if-nez·v8,·:cond_3 |
| | |
| 483 | ····.line·137 | 359 | ····.line·118 |
| 484 | ····new-instance·v6,·Landroid/content/ComponentName; | 360 | ····new-instance·v8,·Landroid/content/ComponentName; |
| | |
| 485 | ····invoke-direct·{v6,·v5,·v4},·Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V | 361 | ····invoke-direct·{v8,·v6,·v5},·Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V |
| | |
| 486 | ····invoke-virtual·{v1,·v6},·Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; | 362 | ····invoke-virtual·{v7,·v8},·Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; |
| | |
| 487 | ····.line·138 | 363 | ····.line·119 |
| 488 | ····iget-object·v4,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | 364 | ····iget-object·v5,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 489 | ····invoke-virtual·{v4},·Landroid/content/pm/ActivityInfo;->getIconResource()I | 365 | ····invoke-virtual·{v5},·Landroid/content/pm/ActivityInfo;->getIconResource()I |
| | |
| 490 | ····move-result·v4 | 366 | ····move-result·v5 |
| | |
| 491 | ····if-eqz·v4,·:cond_3 | 367 | ····if-eqz·v5,·:cond_3 |
| | |
| 492 | ····.line·139 | 368 | ····.line·120 |
| 493 | ····iget-object·v2,·v8,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; | 369 | ····iget-object·v2,·v1,·Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; |
| | |
| 494 | ····.line·140 | 370 | ····.line·121 |
| 495 | ····invoke-virtual·{v2},·Landroid/content/pm/ActivityInfo;->getIconResource()I | 371 | ····invoke-virtual·{v2},·Landroid/content/pm/ActivityInfo;->getIconResource()I |
| | |
| 496 | ····move-result·v2 | 372 | ····move-result·v2 |
| | |
| 497 | ····invoke-static·{p1,·v5,·v2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat; | 373 | ····invoke-static·{p1,·v6,·v2},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createIconFromPackage(Landroid/content/Context;Ljava/lang/String;I)Landroidx/core/graphics/drawable/IconCompat; |
| | |
| 498 | ····move-result-object·v3 | 374 | ····move-result-object·v3 |
| | |
| 499 | ····const/4·v2,·0x1 | 375 | ····const/4·v2,·0x1 |
| | |
| 500 | ····:cond_3 | 376 | ····:cond_3 |
| 501 | ····move·v7,·v2 | |
| | |
| 502 | ····if-nez·v3,·:cond_4 | 377 | ····if-nez·v3,·:cond_4 |
| | |
| | 378 | ····const·v3,·0x1080045 |
| 503 | ····.line·146 | |
| 504 | ····invoke-static·{p1,·v0},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; | |
| | |
| | 379 | ····.line·127 |
| | 380 | ····invoke-static·{p1,·v3},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; |
| 505 | ····move-result-object·v0 | |
| | |
| 506 | ····move-object·v6,·v0 | |
| | |
| 507 | ····goto·:goto_0 | 381 | ····move-result-object·v3 |
| | |
| | 382 | ····.line·129 |
| 508 | ····:cond_4 | 383 | ····:cond_4 |
| | 384 | ····iget·v5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->requestCode:I |
| 509 | ····move-object·v6,·v3 | |
| | |
| 510 | ····:goto_0 | |
| 511 | ····move-object·v3,·p0 | |
| | |
| 512 | ····move-object·v4,·p1 | |
| | |
| 513 | ····move-object·v5,·v1 | |
| | |
| 514 | ····move-object·v9,·p2 | |
| | |
| | 385 | ····invoke-static·{p1,·v7,·v5},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createPendingIntent(Landroid/content/Context;Landroid/content/Intent;I)Landroid/app/PendingIntent; |
| 515 | ····.line·149 | |
| 516 | ····invoke-direct/range·{v3·..·v9},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; | |
| | |
| 517 | ····move-result-object·p0 | 386 | ····move-result-object·p1 |
| | |
| 518 | ····.line·151 | |
| 519 | ····new-instance·p1,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result; | |
| | |
| 520 | ····invoke-direct·{p1,·v1,·p0},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V | 387 | ····if-nez·p2,·:cond_5 |
| | |
| 521 | ····return-object·p1 | 388 | ····.line·130 |
| | 389 | ····sget-object·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; |
| | |
| | 390 | ····.line·131 |
| 522 | ····:cond_5 | 391 | ····:cond_5 |
| | 392 | ····invoke-interface·{p2,·p0,·v1},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; |
| 523 | ····:goto_1 | |
| 524 | ····const-string·p0,·"packageName·or·className·is·null" | |
| | |
| | 393 | ····move-result-object·p2 |
| 525 | ····.line·127 | |
| 526 | ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V | |
| | |
| 527 | ····return-object·v3 | 394 | ····.line·132 |
| | 395 | ····invoke-static·{p2},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| | |
| | 396 | ····move-result·v5 |
| 528 | ····.line·107 | |
| 529 | ····:cond_6 | |
| 530 | ····:goto_2 | |
| 531 | ····invoke-direct·{p0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->isWebIntent()Z | |
| | |
| 532 | ····move-result·v2 | 397 | ····if-eqz·v5,·:cond_6 |
| | |
| 533 | ····if-eqz·v2,·:cond_7 | 398 | ····const-string·p2,·"Custom·titleChooser·return·null,·fallback·to·the·default·titleChooser" |
| | |
| 534 | ····.line·108 | 399 | ····.line·133 |
| 535 | ····invoke-static·{p1,·v0},·Landroidx/core/graphics/drawable/IconCompat;->createWithResource(Landroid/content/Context;I)Landroidx/core/graphics/drawable/IconCompat; | 400 | ····invoke-static·{v4,·p2},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V |
| | |
| 536 | ····move-result-object·v6 | 401 | ····.line·134 |
| | 402 | ····sget-object·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent;->DEFAULT_TITLE_CHOOSER:Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser; |
| | |
| | 403 | ····invoke-interface·{p2,·p0,·v1},·Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;->chooseTitle(Lcom/android/textclassifier/common/intent/LabeledIntent;Landroid/content/pm/ResolveInfo;)Ljava/lang/CharSequence; |
| 537 | ····.line·109 | |
| 538 | ····iget-object·v5,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | |
| | |
| 539 | ····const/4·v7,·0x0 | 404 | ····move-result-object·p2 |
| | |
| 540 | ····move-object·v3,·p0 | 405 | ····.line·136 |
| | 406 | ····:cond_6 |
| | 407 | ····new-instance·v4,·Landroidx/core/app/RemoteActionCompat; |
| | |
| 541 | ····move-object·v4,·p1 | 408 | ····.line·137 |
| | 409 | ····invoke-direct·{p0,·v1,·v0},·Lcom/android/textclassifier/common/intent/LabeledIntent;->resolveDescription(Landroid/content/pm/ResolveInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String; |
| | |
| 542 | ····move-object·v9,·p2 | 410 | ····move-result-object·p0 |
| | |
| | 411 | ····invoke-direct·{v4,·v3,·p2,·p0,·p1},·Landroidx/core/app/RemoteActionCompat;-><init>(Landroidx/core/graphics/drawable/IconCompat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V |
| 543 | ····.line·110 | |
| 544 | ····invoke-direct/range·{v3·..·v9},·Lcom/android/textclassifier/common/intent/LabeledIntent;->createRemoteAction(Landroid/content/Context;Landroid/content/Intent;Landroidx/core/graphics/drawable/IconCompat;ZLandroid/content/pm/ResolveInfo;Lcom/android/textclassifier/common/intent/LabeledIntent$TitleChooser;)Landroidx/core/app/RemoteActionCompat; | |
| | |
| 545 | ····move-result-object·p1 | 412 | ····.line·138 |
| | 413 | ····invoke-virtual·{v4,·v2},·Landroidx/core/app/RemoteActionCompat;->setShouldShowIcon(Z)V |
| | |
| 546 | ····.line·113 | 414 | ····.line·139 |
| 547 | ····new-instance·p2,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result; | 415 | ····new-instance·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent$Result; |
| | |
| 548 | ····new-instance·v0,·Landroid/content/Intent; | 416 | ····invoke-direct·{p0,·v7,·v4},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V |
| | |
| 549 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/intent/LabeledIntent;->intent:Landroid/content/Intent; | 417 | ····return-object·p0 |
| | |
| 550 | ····invoke-direct·{v0,·p0},·Landroid/content/Intent;-><init>(Landroid/content/Intent;)V | 418 | ····:cond_7 |
| | 419 | ····:goto_0 |
| | 420 | ····const-string·p0,·"packageName·or·className·is·null" |
| | |
| 551 | ····invoke-direct·{p2,·v0,·p1},·Lcom/android/textclassifier/common/intent/LabeledIntent$Result;-><init>(Landroid/content/Intent;Landroidx/core/app/RemoteActionCompat;)V | 421 | ····.line·108 |
| | 422 | ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V |
| | |
| 552 | ····return-object·p2 | 423 | ····return-object·v3 |
| | |
| 553 | ····:cond_7 | 424 | ····:cond_8 |
| | 425 | ····:goto_1 |
| 554 | ····const-string·p0,·"resolveInfo·or·activityInfo·is·null" | 426 | ····const-string·p0,·"resolveInfo·or·activityInfo·is·null" |
| | |
| 555 | ····.line·115 | 427 | ····.line·97 |
| 556 | ····invoke-static·{v1,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V | 428 | ····invoke-static·{v4,·p0},·Lcom/android/textclassifier/common/base/TcLog;->w(Ljava/lang/String;Ljava/lang/String;)V |
| | |
| 557 | ····return-object·v3 | 429 | ····return-object·v3 |
| 558 | .end·method | 430 | .end·method |