49 lines
1.7 KiB
Java
49 lines
1.7 KiB
Java
package c.a.d;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import c.d.b.a.a;
|
|
import com.discord.stores.StoreStream;
|
|
import d0.z.d.m;
|
|
import java.util.Objects;
|
|
/* compiled from: AppHelpDesk.kt */
|
|
public final class f {
|
|
public static final f a = new f();
|
|
|
|
public static final String c() {
|
|
StringBuilder O = a.O("https://support.discord.com", "/hc/");
|
|
String locale = StoreStream.Companion.getUserSettingsSystem().getLocale();
|
|
Objects.requireNonNull(locale, "null cannot be cast to non-null type java.lang.String");
|
|
String lowerCase = locale.toLowerCase();
|
|
m.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase()");
|
|
O.append(lowerCase);
|
|
O.append("/requests/new");
|
|
return O.toString();
|
|
}
|
|
|
|
public final String a(long j, String str) {
|
|
if (str != null) {
|
|
StringBuilder O = a.O("https://support.discord.com", "/hc/");
|
|
O.append(b());
|
|
O.append("/articles/");
|
|
O.append(j);
|
|
O.append('#');
|
|
O.append(str);
|
|
return O.toString();
|
|
}
|
|
StringBuilder O2 = a.O("https://support.discord.com", "/hc/");
|
|
O2.append(b());
|
|
O2.append("/articles/");
|
|
O2.append(j);
|
|
return O2.toString();
|
|
}
|
|
|
|
@SuppressLint({"DefaultLocale"})
|
|
public final String b() {
|
|
String locale = StoreStream.Companion.getUserSettingsSystem().getLocale();
|
|
Objects.requireNonNull(locale, "null cannot be cast to non-null type java.lang.String");
|
|
String lowerCase = locale.toLowerCase();
|
|
m.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase()");
|
|
return lowerCase;
|
|
}
|
|
}
|