|
@@ -52,6 +52,7 @@ import com.alipay.sdk.app.PayTask;
|
|
|
import com.cooleshow.base.BuildConfig;
|
|
|
import com.cooleshow.base.bean.DownloadTaskBean;
|
|
|
import com.cooleshow.base.bean.WxPayResult;
|
|
|
+import com.cooleshow.base.common.BaseApplication;
|
|
|
import com.cooleshow.base.common.WebApi;
|
|
|
import com.cooleshow.base.common.WebConstants;
|
|
|
import com.cooleshow.base.constanst.Constants;
|
|
@@ -419,7 +420,7 @@ public class HtmlActivity extends BaseActivity<ActivityHtml1Binding> implements
|
|
|
ToastUtil.getInstance().showShort("文件异常");
|
|
|
return;
|
|
|
}
|
|
|
- String[] permissions = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,Manifest.permission.READ_EXTERNAL_STORAGE};
|
|
|
+ String[] permissions = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE};
|
|
|
PermissionTipHelper.getInstance().showTipDialog(this, permissions);
|
|
|
new RxPermissions(this)
|
|
|
.request(permissions)
|
|
@@ -962,8 +963,9 @@ public class HtmlActivity extends BaseActivity<ActivityHtml1Binding> implements
|
|
|
}
|
|
|
DownloadFileTipDialog dialog = new DownloadFileTipDialog(this);
|
|
|
dialog.show();
|
|
|
- dialog.setData(title,content);
|
|
|
- dialog.handleTitleBg(UserHelper.isTenantAccount());
|
|
|
+ dialog.setData(title, content);
|
|
|
+ boolean teacherClient = BaseApplication.Companion.isTeacherClient();
|
|
|
+ dialog.handleTitleBg(UserHelper.isTenantAccount() && !teacherClient);
|
|
|
dialog.setOnEventListener(new DownloadFileTipDialog.OnEventListener() {
|
|
|
@Override
|
|
|
public void onConfirmClick() {
|