正在查看: MX Player v1.97.8 应用的 ChooseReceiverActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 ChooseReceiverActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.mxtransfer.ui;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.media.MediaPlayer;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.mxtech.barcode.BarcodeReader;
import com.mxtech.videoplayer.mxtransfer.ui.ChooseReceiverActivity;
import com.mxtech.videoplayer.mxtransfer.ui.fragment.SimplifyChooseFragment;
import com.mxtech.videoplayer.mxtransfer.ui.scanzxing.zxing.android.CaptureActivity;
import defpackage.al1;
import defpackage.ug1;
public class ChooseReceiverActivity extends CaptureActivity implements SimplifyChooseFragment.a {
public static final int u = 0;
public View p;
public TextView q;
public View r;
public BottomSheetBehavior<?> s;
public final BottomSheetBehavior.c t = new a();
@Override
public final int S5() {
return 2114453506;
}
@Override
public final void U5(BarcodeReader.Result result, Bitmap bitmap, float f) {
MediaPlayer mediaPlayer;
String text = result.getText();
if (!TextUtils.isEmpty(text) && al1.b(text) != null) {
super.U5(result, bitmap, f);
return;
}
z6h.e(getResources().getString(2114715805), false);
ug1 ug1Var = this.i;
synchronized (ug1Var) {
if (ug1Var.d && (mediaPlayer = ug1Var.c) != null) {
mediaPlayer.start();
}
}
getWindow().getDecorView().postDelayed(new Runnable() {
@Override
public final void run() {
int i = ChooseReceiverActivity.u;
?? r0 = ChooseReceiverActivity.this;
if (r0.isFinishing()) {
return;
}
r0.c.a();
}
}, 2000L);
}
@Override
public final void a6() {
Window window = getWindow();
if (Build.VERSION.SDK_INT >= 27) {
window.getDecorView().setSystemUiVisibility(1024);
window.setStatusBarColor(0);
} else {
window.getDecorView().setSystemUiVisibility(1024);
window.setStatusBarColor(0);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
getWindow().setNavigationBarColor(i0g.c(this, 2131100707));
View findViewById = findViewById(2114322788);
Context context = findViewById.getContext();
int identifier = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
int dimensionPixelSize = identifier > 0 ? context.getResources().getDimensionPixelSize(identifier) : 0;
if (dimensionPixelSize == 0) {
dimensionPixelSize = context.getResources().getDimensionPixelSize(2114191651);
}
findViewById.setPadding(findViewById.getPaddingLeft(), findViewById.getPaddingTop() + dimensionPixelSize, findViewById.getPaddingRight(), findViewById.getPaddingBottom());
findViewById.getLayoutParams().height += dimensionPixelSize;
this.q = (TextView) findViewById(2114322810);
this.p = findViewById(2114322648);
BottomSheetBehavior<?> f = BottomSheetBehavior.f(findViewById(2114322638));
this.s = f;
f.a(this.t);
View findViewById2 = findViewById(2114322628);
this.r = findViewById2;
findViewById2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
BottomSheetBehavior<?> bottomSheetBehavior = ChooseReceiverActivity.this.s;
int i = bottomSheetBehavior.J;
if (i == 3) {
bottomSheetBehavior.n(4);
} else if (i == 4) {
bottomSheetBehavior.n(3);
}
}
});
View findViewById3 = findViewById(2114322638);
ImageView imageView = (ImageView) findViewById(2114322628);
TextView textView = (TextView) findViewById(2114322810);
int c = i0g.c(this, 2131100707);
int c2 = i0g.c(this, 2131100151);
textView.setTextColor(c2);
imageView.setImageTintList(ColorStateList.valueOf(c2));
findViewById3.setBackgroundTintList(ColorStateList.valueOf(c));
}
@Override
public final void onDestroy() {
super.onDestroy();
BottomSheetBehavior<?> bottomSheetBehavior = this.s;
bottomSheetBehavior.T.remove(this.t);
}
@Override
public final void q5(String str) {
Intent intent = getIntent();
intent.putExtra("codedDirectContent", str);
setResult(-1, intent);
finish();
}
@Override
public final void v3(boolean z) {
if (z) {
this.p.setVisibility(8);
this.q.setText(getString(2131889166));
} else {
this.p.setVisibility(0);
this.q.setText(getString(2131889163));
}
}
public class a extends BottomSheetBehavior.c {
public a() {
}
public final void onStateChanged(@NonNull View view, int i) {
ChooseReceiverActivity chooseReceiverActivity = ChooseReceiverActivity.this;
if (i == 3) {
chooseReceiverActivity.r.setRotation(180.0f);
((ViewGroup.MarginLayoutParams) chooseReceiverActivity.p.getLayoutParams()).topMargin = chooseReceiverActivity.getResources().getDimensionPixelOffset(2131165644);
chooseReceiverActivity.p.requestLayout();
} else if (i == 4) {
chooseReceiverActivity.r.setRotation(0.0f);
((ViewGroup.MarginLayoutParams) chooseReceiverActivity.p.getLayoutParams()).topMargin = chooseReceiverActivity.getResources().getDimensionPixelOffset(2114191485);
chooseReceiverActivity.p.requestLayout();
}
}
public final void onSlide(@NonNull View view, float f) {
}
}
}