整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 ExtensionShareDialog.java 源代码,内容仅作参考
package com.ys.resemble.widgets.dialog;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatDialog;
import androidx.core.internal.view.SupportMenu;
import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;
import com.wholepoint.wpfilms.R;
import com.ys.resemble.entity.ExtensionShareEntry;
import com.ys.resemble.util.o0000;
import com.ys.resemble.util.o000000;
public class ExtensionShareDialog extends AppCompatDialog implements View.OnClickListener {
private boolean OooO;
private LinearLayout OooO00o;
private LinearLayout OooO0O0;
private LinearLayout OooO0OO;
private LinearLayout OooO0Oo;
private ExtensionShareEntry OooO0o;
private TextView OooO0o0;
private Bitmap OooO0oO;
private Bitmap OooO0oo;
private boolean OooOO0;
private boolean OooOO0O;
private boolean OooOO0o;
private OooO0o OooOOO;
private boolean OooOOO0;
private Activity OooOOOO;
private Context OooOOOo;
class OooO00o extends SimpleTarget<Bitmap> {
OooO00o() {
}
@Override
public void onResourceReady(@NonNull Bitmap bitmap, @Nullable Transition<? super Bitmap> transition) {
ExtensionShareDialog.this.OooO0oO = bitmap;
ExtensionShareDialog.this.OooO = true;
if (ExtensionShareDialog.this.OooOO0 && ExtensionShareDialog.this.OooOOO != null && ExtensionShareDialog.this.OooOOO.isShowing()) {
ExtensionShareDialog.this.OooOOO.OooO0O0.stop();
ExtensionShareDialog.this.OooOOO.dismiss();
if (ExtensionShareDialog.this.OooOO0O) {
o000000.OooO0Oo(ExtensionShareDialog.this.OooOOOo, ExtensionShareDialog.OooOO0o(ExtensionShareDialog.this.OooO0oO, ExtensionShareDialog.this.OooO0oo), 2);
} else if (ExtensionShareDialog.this.OooOO0o) {
o000000.OooO0Oo(ExtensionShareDialog.this.OooOOOo, ExtensionShareDialog.OooOO0o(ExtensionShareDialog.this.OooO0oO, ExtensionShareDialog.this.OooO0oo), 1);
} else if (ExtensionShareDialog.this.OooOOO0) {
com.ys.resemble.util.o0OoOo0.OooO0O0(ExtensionShareDialog.this.OooOOOO, ExtensionShareDialog.OooOO0o(ExtensionShareDialog.this.OooO0oO, ExtensionShareDialog.this.OooO0oo));
}
}
Log.i("wangyi", "加载完成1");
}
}
public ExtensionShareDialog(Activity activity, Context context, ExtensionShareEntry extensionShareEntry) {
super(context, R.style.dialog_center);
requestWindowFeature(1);
this.OooOOOO = activity;
this.OooOOOo = context;
this.OooO0o = extensionShareEntry;
}
public static Bitmap OooOO0o(Bitmap bitmap, Bitmap bitmap2) {
String str;
if (bitmap == null) {
return null;
}
int width = bitmap.getWidth();
int height = bitmap.getHeight();
bitmap2.getWidth();
bitmap2.getHeight();
Bitmap createBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
if (me.goldze.mvvmhabit.utils.Oooo000.OooO00o(o0000.o000oOoO())) {
str = "官网地址: http://xl01.com";
} else {
str = "官网地址: " + o0000.o000oOoO();
}
Paint paint = new Paint();
paint.setStyle(Paint.Style.FILL);
paint.setColor(SupportMenu.CATEGORY_MASK);
paint.setTextSize(40.0f);
Canvas canvas = new Canvas(createBitmap);
canvas.drawBitmap(bitmap, 0.0f, 0.0f, (Paint) null);
canvas.drawBitmap(bitmap2, 122.0f, 1478.0f, (Paint) null);
canvas.drawText(str, 250.0f, 40.0f, paint);
canvas.drawText(str, 420.0f, 1725.0f, paint);
canvas.save();
canvas.restore();
return createBitmap;
}
private void OooOOO() {
getWindow().setGravity(80);
getWindow().getWindowManager();
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.width = -1;
attributes.height = -2;
getWindow().setAttributes(attributes);
setCancelable(true);
setCanceledOnTouchOutside(true);
}
private void OooOOO0(View view) {
this.OooO00o = (LinearLayout) view.findViewById(R.id.ll_wx);
this.OooO0O0 = (LinearLayout) view.findViewById(R.id.ll_pyq);
this.OooO0o0 = (TextView) view.findViewById(R.id.tv_cancel);
this.OooO0OO = (LinearLayout) view.findViewById(R.id.ll_copyUrl);
this.OooO0Oo = (LinearLayout) view.findViewById(R.id.ll_savePhoto);
this.OooO00o.setOnClickListener(this);
this.OooO0O0.setOnClickListener(this);
this.OooO0o0.setOnClickListener(this);
this.OooO0OO.setOnClickListener(this);
this.OooO0Oo.setOnClickListener(this);
}
@Override
public void onBackPressed() {
super.onBackPressed();
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.ll_copyUrl:
if (this.OooO0o != null) {
com.ys.resemble.util.OooOOO0.OooO0o(this.OooO0o.getApp_share_url() + "");
dismiss();
return;
}
return;
case R.id.ll_pyq:
this.OooOO0O = false;
this.OooOO0o = true;
this.OooOOO0 = false;
if (this.OooO && this.OooOO0) {
o000000.OooO0Oo(this.OooOOOo, OooOO0o(this.OooO0oO, this.OooO0oo), 1);
dismiss();
return;
}
dismiss();
OooO0o oooO0o = new OooO0o(this.OooOOOo);
this.OooOOO = oooO0o;
oooO0o.showAtLocation(view, 0, 0, 0);
this.OooOOO.OooO0O0.start();
return;
case R.id.ll_savePhoto:
this.OooOO0O = false;
this.OooOO0o = false;
this.OooOOO0 = true;
if (this.OooO && this.OooOO0) {
com.ys.resemble.util.o0OoOo0.OooO0O0(this.OooOOOO, OooOO0o(this.OooO0oO, this.OooO0oo));
dismiss();
return;
}
dismiss();
OooO0o oooO0o2 = new OooO0o(this.OooOOOo);
this.OooOOO = oooO0o2;
oooO0o2.showAtLocation(view, 0, 0, 0);
this.OooOOO.OooO0O0.start();
return;
case R.id.ll_wx:
this.OooOO0O = true;
this.OooOO0o = false;
this.OooOOO0 = false;
if (this.OooO && this.OooOO0) {
o000000.OooO0Oo(this.OooOOOo, OooOO0o(this.OooO0oO, this.OooO0oo), 2);
dismiss();
return;
}
dismiss();
OooO0o oooO0o3 = new OooO0o(this.OooOOOo);
this.OooOOO = oooO0o3;
oooO0o3.showAtLocation(view, 0, 0, 0);
this.OooOOO.OooO0O0.start();
return;
case R.id.tv_cancel:
dismiss();
return;
default:
return;
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
ViewGroup viewGroup = (ViewGroup) View.inflate(this.OooOOOo, R.layout.dialog_extension_share, null);
OooOOO0(viewGroup);
setContentView(viewGroup);
OooOOO();
if (!me.goldze.mvvmhabit.utils.Oooo000.OooO00o(this.OooO0o.getWx_app_url())) {
this.OooO0oo = com.od.OoooOOO.Oooo000.OooO00o(this.OooO0o.getWx_app_url(), com.ys.resemble.util.adcsj.OooO0o.OooO00o(this.OooOOOo, 80.0f), com.ys.resemble.util.adcsj.OooO0o.OooO00o(this.OooOOOo, 80.0f), BitmapFactory.decodeResource(this.OooOOOo.getResources(), R.mipmap.ic_launcher));
this.OooOO0 = true;
}
Glide.with(this.OooOOOo).asBitmap().load(this.OooO0o.getShare_pic_url()).into((RequestBuilder<Bitmap>) new OooO00o());
}
}