File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
src/main/java/com/adguard/android/contentblocker Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ android {
1414 defaultConfig {
1515 targetSdkVersion 23
1616 applicationId ' com.adguard.android.contentblocker'
17- versionName " 1.0.3 "
17+ versionName " 1.0.4 "
1818 signingConfig signingConfigs. config
1919 }
2020 buildTypes {
@@ -27,11 +27,11 @@ android {
2727 productFlavors {
2828 yandex_api16 {
2929 minSdkVersion 16
30- versionCode 1600103
30+ versionCode 1600104
3131 }
3232 samsung_api21 {
3333 minSdkVersion 21
34- versionCode 2100103
34+ versionCode 2100104
3535 }
3636 }
3737 compileOptions {
Original file line number Diff line number Diff line change @@ -279,7 +279,17 @@ public void openSamsungBlockingOptions() {
279279 intent .setFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
280280 List <ResolveInfo > list = getPackageManager ().queryIntentActivities (intent , PackageManager .MATCH_DEFAULT_ONLY );
281281 if (list .size () > 0 ) {
282- startActivity (intent );
282+ boolean found = false ;
283+ for (ResolveInfo info : list )
284+ {
285+ if (info .activityInfo .packageName .contains ("com.sec." ) || info .activityInfo .packageName .contains ("samsung" )) {
286+ found = true ;
287+ intent .setClassName (info .activityInfo .packageName , info .activityInfo .name );
288+ }
289+ }
290+ if (found ) {
291+ startActivity (intent );
292+ }
283293 }
284294 }
285295
@@ -317,6 +327,7 @@ public void openYandexBlockingOptions() {
317327 {
318328 if (info .activityInfo .packageName .contains (YANDEX )) {
319329 found = true ;
330+ intent .setClassName (info .activityInfo .packageName , info .activityInfo .name );
320331 }
321332 }
322333 if (found ) {
You can’t perform that action at this time.
0 commit comments