Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit 1bb424e

Browse files
authored
buzzscreen-sdk 2.0.5.3 (#33)
1 parent eab2d61 commit 1bb424e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ allprojects {
2222

2323

2424
ext {
25-
buzzscreenVersionName = '2.0.5.2'
25+
buzzscreenVersionName = '2.0.5.3'
2626

2727
mediationAdfitVersion = '3.0.9.0'
2828
mediationAdmobVersion = '17.1.1.0'

sample/src/main/java/com/buzzvil/buzzscreen/sample/MainActivity.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ public void onCheckedChanged(RadioGroup group, int checkedId) {
127127
}
128128
});
129129

130-
BuzzScreen.getInstance().showBatteryGuideIfNeeded(this, findViewById(android.R.id.content));
131-
132130
if (Constants.useSecurity) {
133131
findViewById(R.id.layout_security).setVisibility(View.VISIBLE);
134132
textViewSecurityType = findViewById(R.id.text_security_type);
@@ -142,6 +140,15 @@ public void onClick(View v) {
142140
} else {
143141
findViewById(R.id.layout_security).setVisibility(View.GONE);
144142
}
143+
144+
BuzzScreen.getInstance().showOverlayPermissionGuideDialogIfNeeded(MainActivity.this, new BuzzScreen.OnOverlayPermissionCancelListener() {
145+
@Override
146+
public void onCancel(boolean forcedPermission) {
147+
if (forcedPermission) {
148+
BuzzScreen.getInstance().deactivate();
149+
}
150+
}
151+
});
145152
}
146153

147154
@Override

0 commit comments

Comments
 (0)