Skip to content

Commit f0a8fa5

Browse files
Fix context reference in developer options warning response
1 parent 0e1aa17 commit f0a8fa5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

protect/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = 'com.github.webileapps'
7-
version = '0.2.6'
7+
version = '0.2.7'
88

99
android {
1010
namespace 'com.webileapps.safeguard'
@@ -57,7 +57,7 @@ afterEvaluate {
5757

5858
groupId = 'com.github.webileapps'
5959
artifactId = 'safeguard'
60-
version = '0.2.6'
60+
version = '0.2.7'
6161

6262
pom {
6363
name = 'Safeguard'

protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ public SecurityCheck checkDeveloperOptions() {
490490
) != 0;
491491

492492
if (developerMode) {
493-
return createDevOptionsResponse(activity.getString(R.string.developer_options_warning));
493+
return createDevOptionsResponse(context.getString(R.string.developer_options_warning));
494494
}
495495
} catch (Settings.SettingNotFoundException e) {
496496
e.printStackTrace();

0 commit comments

Comments
 (0)