今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
3.1 KiB

.class public final Lbolts/AppLinks;
.super Ljava/lang/Object;
.source "AppLinks.java"
# static fields
.field static final KEY_NAME_APPLINK_DATA:Ljava/lang/String; = "al_applink_data"
.field static final KEY_NAME_EXTRAS:Ljava/lang/String; = "extras"
.field static final KEY_NAME_TARGET:Ljava/lang/String; = "target_url"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getAppLinkData(Landroid/content/Intent;)Landroid/os/Bundle;
.locals 1
.prologue
.line 36
const-string v0, "al_applink_data"
invoke-virtual {p0, v0}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v0
return-object v0
.end method
.method public static getAppLinkExtras(Landroid/content/Intent;)Landroid/os/Bundle;
.locals 2
.prologue
.line 47
invoke-static {p0}, Lbolts/AppLinks;->getAppLinkData(Landroid/content/Intent;)Landroid/os/Bundle;
move-result-object v0
.line 48
if-nez v0, :cond_0
.line 49
const/4 v0, 0x0
.line 51
:goto_0
return-object v0
:cond_0
const-string v1, "extras"
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v0
goto :goto_0
.end method
.method public static getTargetUrl(Landroid/content/Intent;)Landroid/net/Uri;
.locals 2
.prologue
.line 63
invoke-static {p0}, Lbolts/AppLinks;->getAppLinkData(Landroid/content/Intent;)Landroid/os/Bundle;
move-result-object v0
.line 64
if-eqz v0, :cond_0
.line 65
const-string v1, "target_url"
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 66
if-eqz v0, :cond_0
.line 67
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
.line 70
:goto_0
return-object v0
:cond_0
invoke-virtual {p0}, Landroid/content/Intent;->getData()Landroid/net/Uri;
move-result-object v0
goto :goto_0
.end method
.method public static getTargetUrlFromInboundIntent(Landroid/content/Context;Landroid/content/Intent;)Landroid/net/Uri;
.locals 3
.prologue
const/4 v0, 0x0
.line 82
invoke-static {p1}, Lbolts/AppLinks;->getAppLinkData(Landroid/content/Intent;)Landroid/os/Bundle;
move-result-object v1
.line 83
if-eqz v1, :cond_0
.line 84
const-string v2, "target_url"
invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 85
if-eqz v1, :cond_0
.line 86
const-string v2, "al_nav_in"
invoke-static {p0, v2, p1, v0}, Lbolts/MeasurementEvent;->sendBroadcastEvent(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Ljava/util/Map;)V
.line 87
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
.line 90
:cond_0
return-object v0
.end method