基线备份:thirdparty 变体完成 + Android 4.2 兼容改造前
包含内容: - thirdparty flavor 独立 applicationId + Intent 入口(ThirdPartyEntryActivity) - 58 后端接口适配(单 /api 路径、code 0/200、camelCase 字段、UNBOUND 轮询) - MAC 硬件锚定校验(防一凭证多设备共用) - EPG mac 覆盖 SDK init(sMacOverride)+ ChannelManger 初始化对齐 - 提示文案优化(设备未注册/权益未绑定)
This commit is contained in:
53
app/src/main/java/com/pukka/jiecheng/utils/UpdateOtherDialog.java
Executable file
53
app/src/main/java/com/pukka/jiecheng/utils/UpdateOtherDialog.java
Executable file
@@ -0,0 +1,53 @@
|
||||
package com.pukka.jiecheng.utils;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.pukka.jiecheng.R;
|
||||
import com.pukka.libcore.fresco.PkSimpleDraweeView;
|
||||
|
||||
|
||||
/**
|
||||
* @Author luoyuhang
|
||||
* @create 2022/1/5 0005 9:27
|
||||
*/
|
||||
public class UpdateOtherDialog extends AlertDialog {
|
||||
|
||||
String mUrl;
|
||||
private ProgressBar mProgressBar;
|
||||
private PkSimpleDraweeView iv_icon;
|
||||
private TextView tv_title;
|
||||
|
||||
public UpdateOtherDialog(Context context, String url) {
|
||||
super(context);
|
||||
this.mUrl = url;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
if (null != getWindow()) {
|
||||
getWindow().setBackgroundDrawableResource(android.R.color.transparent);
|
||||
}
|
||||
super.onCreate(savedInstanceState);
|
||||
this.setContentView(R.layout.update_other_dialog);
|
||||
setCancelable(false);
|
||||
mProgressBar = findViewById(R.id.progressBar);
|
||||
tv_title = findViewById(R.id.tv_title);
|
||||
iv_icon = findViewById(R.id.iv_icon);
|
||||
}
|
||||
|
||||
public ProgressBar getmProgressBar() {
|
||||
return mProgressBar;
|
||||
}
|
||||
|
||||
public void setIcon(String iconStr) {
|
||||
iv_icon.setImageURI(iconStr);
|
||||
}
|
||||
|
||||
public void setTitle(String titleStr) {
|
||||
tv_title.setText(titleStr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user