File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
intentmanip/src/main/java/xyz/belvi/intentmanip/IntentUtils Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,6 @@ dependencies {
2828 compile ' com.android.support:appcompat-v7:24.2.1'
2929 compile ' com.android.support:design:24.2.1'
3030 testCompile ' junit:junit:4.12'
31- compile ' com.github.KingsMentor:intentmanip:v1.0'
31+ // compile 'com.github.KingsMentor:intentmanip:v1.0'
32+ compile project(' :intentmanip' )
3233}
Original file line number Diff line number Diff line change 33import android .content .Context ;
44import android .content .Intent ;
55
6+ import java .util .ArrayList ;
7+ import java .util .Arrays ;
68import java .util .List ;
79
810import xyz .belvi .intentmanip .IntentUtils .Models .ResolveIntent ;
@@ -23,15 +25,15 @@ public static List<ResolveIntent> getAllApps(Context context) {
2325 }
2426
2527 public static ResolveIntent targetByAppName (Context context , List <ResolveIntent > resolveIntents , String appName ) {
26- lookUpAppsByAppName (context , resolveIntents , appName );
28+ lookUpAppsByAppName (context , resolveIntents , new ArrayList < String >( Arrays . asList ( appName )) );
2729 if (resolveIntents .size () > 0 ) {
2830 return resolveIntents .get (0 );
2931 }
3032 return null ;
3133 }
3234
3335 public static ResolveIntent targetByPackageName (Context context , List <ResolveIntent > resolveIntents , String packageName ) {
34- lookUpAppsByPackageName (resolveIntents , packageName );
36+ lookUpAppsByPackageName (resolveIntents , new ArrayList < String >( Arrays . asList ( packageName )) );
3537 if (resolveIntents .size () > 0 ) {
3638 return resolveIntents .get (0 );
3739 }
You can’t perform that action at this time.
0 commit comments