feat: Add first-launch server URL input dialog
Implements a setup dialog on first game launch that allows users to enter their custom community server URL without rebuilding the APK. Features: - Server URL input dialog on first launch - URL validation (format check) - Connection test button - SharedPreferences storage - Priority: SharedPreferences > AndroidManifest.xml > EA defaults - Activity restart flow for applying configuration New files: - CommunityServerManager.smali (URL management) - ServerSetupActivity.smali + 4 inner classes (dialog UI) - res/layout/activity_server_setup.xml (layout) - SERVER-URL-INPUT-IMPLEMENTATION.md (docs) Modified files: - SynergyEnvironmentImpl.smali (SharedPreferences check priority) - MainActivity.smali (first-launch check + onActivityResult) - AndroidManifest.xml (declare ServerSetupActivity) Benefits: - One APK works with any server - Easy server switching - Lower barrier to entry for non-technical users
This commit is contained in:
@@ -956,6 +956,36 @@
|
||||
.line 227
|
||||
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
||||
|
||||
# 🆕 COMMUNITY PATCH: Check SharedPreferences first (PRIORITY #1)
|
||||
.line 228
|
||||
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getCurrentApplication()Landroid/app/Application;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Lcom/firemint/realracing/CommunityServerManager;->getServerUrl(Landroid/content/Context;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :check_manifest
|
||||
|
||||
.line 229
|
||||
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :check_manifest
|
||||
|
||||
# User has configured a custom server URL via setup dialog
|
||||
const-string v1, "🎯 Using community server from SharedPreferences"
|
||||
|
||||
const-string v2, "SynergyEnvironmentImpl"
|
||||
|
||||
invoke-static {v2, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-object v0
|
||||
|
||||
# Continue with normal logic (AndroidManifest.xml or defaults)
|
||||
:check_manifest
|
||||
.line 228
|
||||
sget-object v0, Lcom/ea/nimble/SynergyEnvironmentImpl$3;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
|
||||
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
.class public Lcom/firemint/realracing/CommunityServerManager;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CommunityServerManager.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final PREFS_NAME:Ljava/lang/String; = "rr3_community_server"
|
||||
|
||||
.field private static final KEY_SERVER_URL:Ljava/lang/String; = "server_url"
|
||||
|
||||
.field private static final TAG:Ljava/lang/String; = "CommunityServerManager"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 8
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static checkServerUrl(Landroid/content/Context;)Z
|
||||
.locals 3
|
||||
|
||||
const-string v0, "rr3_community_server"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 16
|
||||
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "server_url"
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 17
|
||||
invoke-interface {p0, v0, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
.line 20
|
||||
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
|
||||
|
||||
move-result p0
|
||||
|
||||
if-nez p0, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_0
|
||||
return v1
|
||||
.end method
|
||||
|
||||
.method public static clearServerUrl(Landroid/content/Context;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "rr3_community_server"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 56
|
||||
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
.line 57
|
||||
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "server_url"
|
||||
|
||||
.line 58
|
||||
invoke-interface {p0, v0}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
.line 59
|
||||
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
||||
|
||||
const-string p0, "CommunityServerManager"
|
||||
|
||||
const-string v0, "\u274c Server URL cleared"
|
||||
|
||||
.line 61
|
||||
invoke-static {p0, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getServerUrl(Landroid/content/Context;)Ljava/lang/String;
|
||||
.locals 3
|
||||
|
||||
const-string v0, "rr3_community_server"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 28
|
||||
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "server_url"
|
||||
|
||||
const-string v1, ""
|
||||
|
||||
.line 29
|
||||
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
.line 31
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "\ud83d\udd17 Getting server URL: "
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "CommunityServerManager"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static saveServerUrl(Landroid/content/Context;Ljava/lang/String;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "rr3_community_server"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 41
|
||||
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
.line 42
|
||||
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "server_url"
|
||||
|
||||
.line 43
|
||||
invoke-interface {p0, v0, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
|
||||
|
||||
.line 44
|
||||
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
|
||||
|
||||
.line 46
|
||||
new-instance p0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v0, "\u2705 Server URL saved: "
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "CommunityServerManager"
|
||||
|
||||
invoke-static {p1, p0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -2014,6 +2014,41 @@
|
||||
.line 1418
|
||||
invoke-super {p0, p1, p2, p3}, Lcom/firemonkeys/cloudcellapi/CC_Activity;->onActivityResult(IILandroid/content/Intent;)V
|
||||
|
||||
# 🆕 COMMUNITY PATCH: Handle ServerSetupActivity result
|
||||
const/16 v0, 0x1001
|
||||
|
||||
if-ne p1, v0, :check_wifi
|
||||
|
||||
# ServerSetupActivity returned
|
||||
const/4 v0, -0x1
|
||||
|
||||
if-ne p2, v0, :setup_cancelled
|
||||
|
||||
# RESULT_OK - Server URL was configured, continue boot
|
||||
const-string v0, "✅ Server configured - continuing boot"
|
||||
|
||||
const-string v1, "MainActivity"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
# Restart activity to continue normal boot sequence
|
||||
invoke-virtual {p0}, Landroid/app/Activity;->recreate()V
|
||||
|
||||
return-void
|
||||
|
||||
:setup_cancelled
|
||||
# User cancelled setup - exit app
|
||||
const-string v0, "❌ Server setup cancelled - exiting"
|
||||
|
||||
const-string v1, "MainActivity"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
|
||||
|
||||
return-void
|
||||
|
||||
:check_wifi
|
||||
const v0, 0x13a286e3
|
||||
|
||||
const/4 v1, 0x0
|
||||
@@ -2306,6 +2341,41 @@
|
||||
.line 362
|
||||
invoke-super {p0, p1}, Lcom/firemonkeys/cloudcellapi/CC_Activity;->onCreate(Landroid/os/Bundle;)V
|
||||
|
||||
# 🆕 COMMUNITY PATCH: Check for server URL before continuing boot
|
||||
.line 363
|
||||
invoke-static {p0}, Lcom/firemint/realracing/CommunityServerManager;->checkServerUrl(Landroid/content/Context;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :server_configured
|
||||
|
||||
# No server URL configured - show setup dialog
|
||||
const-string v0, "⚠️ No server URL configured - showing setup dialog"
|
||||
|
||||
const-string v1, "MainActivity"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
new-instance v0, Landroid/content/Intent;
|
||||
|
||||
const-class v1, Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
|
||||
|
||||
const/16 v1, 0x1001
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
|
||||
|
||||
# Don't continue boot - wait for setup to complete
|
||||
return-void
|
||||
|
||||
:server_configured
|
||||
const-string v0, "✅ Server URL configured - continuing boot"
|
||||
|
||||
const-string v1, "MainActivity"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
.line 365
|
||||
new-instance v0, Lcom/firemint/realracing/NotificationChannelHelper;
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
.class Lcom/firemint/realracing/ServerSetupActivity$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ServerSetupActivity.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroid/view/View$OnClickListener;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/firemint/realracing/ServerSetupActivity;->onCreate(Landroid/os/Bundle;)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
.locals 0
|
||||
|
||||
.line 47
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$1;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onClick(Landroid/view/View;)V
|
||||
.locals 0
|
||||
|
||||
.line 50
|
||||
iget-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$1;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {p1}, Lcom/firemint/realracing/ServerSetupActivity;->access$000(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,107 @@
|
||||
.class Lcom/firemint/realracing/ServerSetupActivity$2$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ServerSetupActivity.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Runnable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/firemint/realracing/ServerSetupActivity$2;->run()V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
.field final synthetic val$success:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Lcom/firemint/realracing/ServerSetupActivity$2;Z)V
|
||||
.locals 0
|
||||
|
||||
.line 147
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
iput-boolean p2, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->val$success:Z
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public run()V
|
||||
.locals 2
|
||||
|
||||
.line 150
|
||||
iget-boolean v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->val$success:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 151
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
iget-object v0, v0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {v0}, Lcom/firemint/realracing/ServerSetupActivity;->access$200(Lcom/firemint/realracing/ServerSetupActivity;)Landroid/widget/TextView;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "\u2705 Connection successful!"
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 152
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
iget-object v0, v0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {v0}, Lcom/firemint/realracing/ServerSetupActivity;->access$200(Lcom/firemint/realracing/ServerSetupActivity;)Landroid/widget/TextView;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const v1, -0xff6634
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 154
|
||||
:cond_0
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
iget-object v0, v0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {v0}, Lcom/firemint/realracing/ServerSetupActivity;->access$200(Lcom/firemint/realracing/ServerSetupActivity;)Landroid/widget/TextView;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "\u274c Could not connect to server"
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 155
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2$1;->this$1:Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
iget-object v0, v0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {v0}, Lcom/firemint/realracing/ServerSetupActivity;->access$200(Lcom/firemint/realracing/ServerSetupActivity;)Landroid/widget/TextView;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/high16 v1, -0x10000
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,233 @@
|
||||
.class Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
.super Ljava/lang/Thread;
|
||||
.source "ServerSetupActivity.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/firemint/realracing/ServerSetupActivity;->testConnection()V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
.field final synthetic val$serverUrl:Ljava/lang/String;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Lcom/firemint/realracing/ServerSetupActivity;Ljava/lang/String;)V
|
||||
.locals 0
|
||||
|
||||
.line 132
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
iput-object p2, p0, Lcom/firemint/realracing/ServerSetupActivity$2;->val$serverUrl:Ljava/lang/String;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public run()V
|
||||
.locals 6
|
||||
|
||||
const-string v0, "ServerSetupActivity"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 137
|
||||
:try_start_0
|
||||
new-instance v2, Ljava/net/URL;
|
||||
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
iget-object v4, p0, Lcom/firemint/realracing/ServerSetupActivity$2;->val$serverUrl:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v4, "/director/api/android/getDirectionByPackage"
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-direct {v2, v3}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
||||
|
||||
.line 138
|
||||
invoke-virtual {v2}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
check-cast v2, Ljava/net/HttpURLConnection;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||||
|
||||
const/16 v1, 0x1388
|
||||
|
||||
.line 139
|
||||
:try_start_1
|
||||
invoke-virtual {v2, v1}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V
|
||||
|
||||
.line 140
|
||||
invoke-virtual {v2, v1}, Ljava/net/HttpURLConnection;->setReadTimeout(I)V
|
||||
|
||||
.line 141
|
||||
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->connect()V
|
||||
|
||||
.line 143
|
||||
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
||||
|
||||
move-result v1
|
||||
|
||||
.line 144
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v4, "\ud83d\udd0d Test connection response code: "
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-static {v0, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
const/16 v3, 0xc8
|
||||
|
||||
if-ne v1, v3, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 147
|
||||
:goto_0
|
||||
iget-object v3, p0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
new-instance v4, Lcom/firemint/realracing/ServerSetupActivity$2$1;
|
||||
|
||||
invoke-direct {v4, p0, v1}, Lcom/firemint/realracing/ServerSetupActivity$2$1;-><init>(Lcom/firemint/realracing/ServerSetupActivity$2;Z)V
|
||||
|
||||
invoke-virtual {v3, v4}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
|
||||
:try_end_1
|
||||
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
if-eqz v2, :cond_2
|
||||
|
||||
.line 162
|
||||
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
move-object v1, v2
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:catch_0
|
||||
move-exception v1
|
||||
|
||||
move-object v5, v2
|
||||
|
||||
move-object v2, v1
|
||||
|
||||
move-object v1, v5
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catchall_1
|
||||
move-exception v0
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:catch_1
|
||||
move-exception v2
|
||||
|
||||
.line 157
|
||||
:goto_1
|
||||
:try_start_2
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v4, "\u274c Test connection failed: "
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
.line 158
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity$2;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
new-instance v2, Lcom/firemint/realracing/ServerSetupActivity$2$1;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
invoke-direct {v2, p0, v3}, Lcom/firemint/realracing/ServerSetupActivity$2$1;-><init>(Lcom/firemint/realracing/ServerSetupActivity$2;Z)V
|
||||
|
||||
invoke-virtual {v0, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
.line 162
|
||||
check-cast v1, Ljava/net/HttpURLConnection;
|
||||
|
||||
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->disconnect()V
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:goto_2
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
check-cast v1, Ljava/net/HttpURLConnection;
|
||||
|
||||
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->disconnect()V
|
||||
|
||||
.line 165
|
||||
:cond_1
|
||||
throw v0
|
||||
|
||||
:cond_2
|
||||
:goto_3
|
||||
return-void
|
||||
|
||||
:goto_4
|
||||
move-object v1, v5
|
||||
|
||||
goto :goto_2
|
||||
.end method
|
||||
@@ -0,0 +1,47 @@
|
||||
.class Lcom/firemint/realracing/ServerSetupActivity$3;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ServerSetupActivity.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroid/view/View$OnClickListener;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/firemint/realracing/ServerSetupActivity;->onCreate(Landroid/os/Bundle;)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
.locals 0
|
||||
|
||||
.line 55
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$3;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onClick(Landroid/view/View;)V
|
||||
.locals 0
|
||||
|
||||
.line 58
|
||||
iget-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity$3;->this$0:Lcom/firemint/realracing/ServerSetupActivity;
|
||||
|
||||
invoke-static {p1}, Lcom/firemint/realracing/ServerSetupActivity;->access$100(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
357
smali_classes2/com/firemint/realracing/ServerSetupActivity.smali
Normal file
357
smali_classes2/com/firemint/realracing/ServerSetupActivity.smali
Normal file
@@ -0,0 +1,357 @@
|
||||
.class public Lcom/firemint/realracing/ServerSetupActivity;
|
||||
.super Landroid/app/Activity;
|
||||
.source "ServerSetupActivity.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final TAG:Ljava/lang/String; = "ServerSetupActivity"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private buttonContinue:Landroid/widget/Button;
|
||||
|
||||
.field private buttonTest:Landroid/widget/Button;
|
||||
|
||||
.field private editTextServerUrl:Landroid/widget/EditText;
|
||||
|
||||
.field private textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 15
|
||||
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$000(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
.locals 0
|
||||
|
||||
.line 15
|
||||
invoke-direct {p0}, Lcom/firemint/realracing/ServerSetupActivity;->testConnection()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$100(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
.locals 0
|
||||
|
||||
.line 15
|
||||
invoke-direct {p0}, Lcom/firemint/realracing/ServerSetupActivity;->continueToGame()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$200(Lcom/firemint/realracing/ServerSetupActivity;)Landroid/widget/TextView;
|
||||
.locals 0
|
||||
|
||||
.line 15
|
||||
iget-object p0, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method private continueToGame()V
|
||||
.locals 4
|
||||
|
||||
.line 78
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->editTextServerUrl:Landroid/widget/EditText;
|
||||
|
||||
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 81
|
||||
invoke-direct {p0, v0}, Lcom/firemint/realracing/ServerSetupActivity;->isValidUrl(Ljava/lang/String;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
.line 82
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const-string v1, "\u274c Invalid URL format. Example: https://rr3.example.com:5001"
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 83
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
|
||||
|
||||
return-void
|
||||
|
||||
.line 88
|
||||
:cond_0
|
||||
invoke-static {p0, v0}, Lcom/firemint/realracing/CommunityServerManager;->saveServerUrl(Landroid/content/Context;Ljava/lang/String;)V
|
||||
|
||||
.line 91
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v2, "\u2705 Server URL configured: "
|
||||
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "ServerSetupActivity"
|
||||
|
||||
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
.line 94
|
||||
new-instance v0, Landroid/content/Intent;
|
||||
|
||||
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
||||
|
||||
const/4 v1, -0x1
|
||||
|
||||
.line 95
|
||||
invoke-virtual {p0, v1, v0}, Lcom/firemint/realracing/ServerSetupActivity;->setResult(ILandroid/content/Intent;)V
|
||||
|
||||
.line 96
|
||||
invoke-virtual {p0}, Lcom/firemint/realracing/ServerSetupActivity;->finish()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private isValidUrl(Ljava/lang/String;)Z
|
||||
.locals 1
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
.line 103
|
||||
invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
goto :cond_2
|
||||
|
||||
:cond_0
|
||||
const-string v0, "http://"
|
||||
|
||||
.line 107
|
||||
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
const-string v0, "https://"
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
:cond_1
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_2
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method private testConnection()V
|
||||
.locals 4
|
||||
|
||||
.line 117
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->editTextServerUrl:Landroid/widget/EditText;
|
||||
|
||||
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 120
|
||||
invoke-direct {p0, v0}, Lcom/firemint/realracing/ServerSetupActivity;->isValidUrl(Ljava/lang/String;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
.line 121
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const-string v1, "\u274c Invalid URL format"
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 122
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
|
||||
|
||||
return-void
|
||||
|
||||
.line 127
|
||||
:cond_0
|
||||
iget-object v1, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const-string v2, "\ud83d\udd0d Testing connection..."
|
||||
|
||||
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 128
|
||||
iget-object v1, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const/high16 v2, -0x1000000
|
||||
|
||||
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
|
||||
|
||||
.line 129
|
||||
iget-object v1, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V
|
||||
|
||||
.line 132
|
||||
new-instance v1, Lcom/firemint/realracing/ServerSetupActivity$2;
|
||||
|
||||
invoke-direct {v1, p0, v0}, Lcom/firemint/realracing/ServerSetupActivity$2;-><init>(Lcom/firemint/realracing/ServerSetupActivity;Ljava/lang/String;)V
|
||||
|
||||
.line 168
|
||||
invoke-virtual {v1}, Ljava/lang/Thread;->start()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method protected onCreate(Landroid/os/Bundle;)V
|
||||
.locals 2
|
||||
|
||||
.line 29
|
||||
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
||||
|
||||
const p1, 0x7f0b001c
|
||||
|
||||
.line 30
|
||||
invoke-virtual {p0, p1}, Lcom/firemint/realracing/ServerSetupActivity;->setContentView(I)V
|
||||
|
||||
const-string p1, "ServerSetupActivity"
|
||||
|
||||
const-string v0, "\ud83d\udd27 Server Setup Activity started"
|
||||
|
||||
.line 32
|
||||
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
const p1, 0x7f080113
|
||||
|
||||
.line 35
|
||||
invoke-virtual {p0, p1}, Lcom/firemint/realracing/ServerSetupActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroid/widget/EditText;
|
||||
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->editTextServerUrl:Landroid/widget/EditText;
|
||||
|
||||
const p1, 0x7f0800f8
|
||||
|
||||
.line 36
|
||||
invoke-virtual {p0, p1}, Lcom/firemint/realracing/ServerSetupActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroid/widget/Button;
|
||||
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->buttonTest:Landroid/widget/Button;
|
||||
|
||||
const p1, 0x7f0800f7
|
||||
|
||||
.line 37
|
||||
invoke-virtual {p0, p1}, Lcom/firemint/realracing/ServerSetupActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroid/widget/Button;
|
||||
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->buttonContinue:Landroid/widget/Button;
|
||||
|
||||
const p1, 0x7f0802e5
|
||||
|
||||
.line 38
|
||||
invoke-virtual {p0, p1}, Lcom/firemint/realracing/ServerSetupActivity;->findViewById(I)Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroid/widget/TextView;
|
||||
|
||||
iput-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->textViewStatus:Landroid/widget/TextView;
|
||||
|
||||
.line 41
|
||||
invoke-static {p0}, Lcom/firemint/realracing/CommunityServerManager;->getServerUrl(Landroid/content/Context;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
.line 42
|
||||
invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 43
|
||||
iget-object v0, p0, Lcom/firemint/realracing/ServerSetupActivity;->editTextServerUrl:Landroid/widget/EditText;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
|
||||
|
||||
.line 47
|
||||
:cond_0
|
||||
iget-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->buttonTest:Landroid/widget/Button;
|
||||
|
||||
new-instance v0, Lcom/firemint/realracing/ServerSetupActivity$1;
|
||||
|
||||
invoke-direct {v0, p0}, Lcom/firemint/realracing/ServerSetupActivity$1;-><init>(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
|
||||
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||||
|
||||
.line 55
|
||||
iget-object p1, p0, Lcom/firemint/realracing/ServerSetupActivity;->buttonContinue:Landroid/widget/Button;
|
||||
|
||||
new-instance v0, Lcom/firemint/realracing/ServerSetupActivity$3;
|
||||
|
||||
invoke-direct {v0, p0}, Lcom/firemint/realracing/ServerSetupActivity$3;-><init>(Lcom/firemint/realracing/ServerSetupActivity;)V
|
||||
|
||||
invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
Reference in New Issue
Block a user