Fix crash
This commit is contained in:
parent
ded6f5b52d
commit
149913463f
|
|
@ -8,7 +8,7 @@ android {
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.github.catvod.demo"
|
applicationId "com.github.catvod.demo"
|
||||||
minSdk 16
|
minSdk 17
|
||||||
targetSdk 28
|
targetSdk 28
|
||||||
ndk { abiFilters "armeabi-v7a" }
|
ndk { abiFilters "armeabi-v7a" }
|
||||||
buildConfigField("String", "CLIENT_ID", "\"${clientId}\"")
|
buildConfigField("String", "CLIENT_ID", "\"${clientId}\"")
|
||||||
|
|
|
||||||
|
|
@ -535,9 +535,7 @@ public class API {
|
||||||
FrameLayout frame = new FrameLayout(Init.context());
|
FrameLayout frame = new FrameLayout(Init.context());
|
||||||
params.gravity = Gravity.CENTER;
|
params.gravity = Gravity.CENTER;
|
||||||
frame.addView(image, params);
|
frame.addView(image, params);
|
||||||
dialog = new AlertDialog.Builder(Init.getActivity()).setView(frame).create();
|
dialog = new AlertDialog.Builder(Init.getActivity()).setView(frame).setOnDismissListener(this::dismiss).show();
|
||||||
dialog.setOnDismissListener(this::dismiss);
|
|
||||||
dialog.show();
|
|
||||||
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||||
Init.show("請使用阿里雲盤 App 掃描二維碼");
|
Init.show("請使用阿里雲盤 App 掃描二維碼");
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
a7adfef4aec7646aee96efcf0ef7f375
|
7398eb8460de8e8da9e898f465524414
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue