正在查看: Uptodown App Store v6.80 应用的 YouTubeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 YouTubeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import E1.a;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import androidx.activity.OnBackPressedCallback;
import c2.d1;
import com.uptodown.activities.YouTubeActivity;
import kotlin.jvm.internal.AbstractC1009g;
public final class YouTubeActivity extends AbstractC0740a {
public static final a M = new a(null);
private C1.e K;
private final R2.g J = R2.h.a(new d3.a() {
@Override
public final Object invoke() {
c2.d1 e32;
e32 = YouTubeActivity.e3(YouTubeActivity.this);
return e32;
}
});
private final d L = new d();
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
public static final class b implements D1.b {
b() {
}
@Override
public void a(View fullscreenView, d3.a exitFullscreen) {
kotlin.jvm.internal.m.e(fullscreenView, "fullscreenView");
kotlin.jvm.internal.m.e(exitFullscreen, "exitFullscreen");
YouTubeActivity.this.f3().c.setVisibility(8);
YouTubeActivity.this.f3().b.setVisibility(0);
YouTubeActivity.this.f3().b.addView(fullscreenView);
}
@Override
public void onExitFullscreen() {
YouTubeActivity.this.f3().c.setVisibility(0);
YouTubeActivity.this.f3().b.setVisibility(8);
YouTubeActivity.this.f3().b.removeAllViews();
}
}
public static final class c extends D1.a {
final String b;
c(String str) {
this.b = str;
}
@Override
public void f(C1.e youTubePlayer) {
kotlin.jvm.internal.m.e(youTubePlayer, "youTubePlayer");
YouTubeActivity.this.K = youTubePlayer;
youTubePlayer.e(this.b, 0.0f);
}
@Override
public void i(C1.e youTubePlayer, C1.c error) {
kotlin.jvm.internal.m.e(youTubePlayer, "youTubePlayer");
kotlin.jvm.internal.m.e(error, "error");
super.i(youTubePlayer, error);
YouTubeActivity.this.finish();
}
}
public static final class d extends OnBackPressedCallback {
d() {
super(true);
}
public void handleOnBackPressed() {
YouTubeActivity.this.finish();
}
}
public static final d1 e3(YouTubeActivity youTubeActivity) {
return d1.c(youTubeActivity.getLayoutInflater());
}
public final d1 f3() {
return (d1) this.J.getValue();
}
private final void g3(String str) {
E1.a c4 = new a.C0022a().e(1).f(1).c();
f3().c.e(new c(str), c4);
f3().c.c(new b());
}
public void onConfigurationChanged(Configuration newConfig) {
C1.e eVar;
kotlin.jvm.internal.m.e(newConfig, "newConfig");
super.onConfigurationChanged(newConfig);
int i = newConfig.orientation;
if ((i == 1 || i == 2) && (eVar = this.K) != null) {
kotlin.jvm.internal.m.b(eVar);
eVar.b();
}
}
@Override
public void onCreate(Bundle bundle) {
Bundle extras;
super.onCreate(bundle);
setContentView(f3().getRoot());
Window window = getWindow();
kotlin.jvm.internal.m.d(window, "getWindow(...)");
P2(window);
getOnBackPressedDispatcher().addCallback(this, this.L);
Intent intent = getIntent();
String string = (intent == null || (extras = intent.getExtras()) == null || !extras.containsKey("id_youtube")) ? null : extras.getString("id_youtube");
if (string == null || string.length() == 0) {
finish();
} else {
g3(string);
}
}
protected void onDestroy() {
super.onDestroy();
f3().c.h();
}
}