MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 WatermarkImageButton.java 源代码,内容仅作参考
package com.smaato.sdk.core.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import com.google.android.material.badge.BadgeDrawable;
import com.smaato.sdk.core.R;
import com.smaato.sdk.core.SmaatoSdk;
import com.smaato.sdk.core.ui.WatermarkImageButton;
import com.smaato.sdk.core.util.Intents;
public final class WatermarkImageButton extends ImageButton {
public WatermarkImageButton(Context context) {
super(context);
init();
}
public WatermarkImageButton(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
init();
}
public WatermarkImageButton(Context context, AttributeSet attributeSet, int i10) {
super(context, attributeSet, i10);
init();
}
public WatermarkImageButton(Context context, AttributeSet attributeSet, int i10, int i11) {
super(context, attributeSet, i10, i11);
init();
}
private void init() {
if (!SmaatoSdk.isWatermarkEnabled()) {
setVisibility(8);
return;
}
setImageDrawable(getResources().getDrawable(R.drawable.smaato_sdk_core_watermark));
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-2, -2, BadgeDrawable.TOP_END);
setPadding(0, 0, 0, 0);
setLayoutParams(layoutParams);
setBackgroundColor(getResources().getColor(17170445));
setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
WatermarkImageButton.this.lambda$init$0(view);
}
});
}
public void lambda$init$0(View view) {
Intents.startIntent(getContext(), Intents.createViewIntent("https://www.smaato.com/privacy/"));
}
}