Skip to content

Commit c730b2e

Browse files
committed
first commit
1 parent 18682c9 commit c730b2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/xyz/belvi/intentmanipsample/MainActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void onIntentSelected(Object resolveIntent) {
9191
}
9292

9393

94-
private void categorised() {
94+
private void categorised() {
9595
ResolveCategory pixResolveCategory = CategorisedIntent.categorized(this, MediaIntents.newSelectPictureIntent(), "picture", 1);
9696
List<ResolveIntent> merge = new MergeIntent().mergeIntents(this, MediaIntents.newSelectPictureIntent(), GeoIntents.newNavigationIntent(""));
9797
ResolveCategory mergeResolveCategory = CategorisedIntent.categorized(merge, "Geo and Media", 2);
@@ -132,7 +132,7 @@ public void onIntentSelected(Object resolveIntent) {
132132

133133
private void lookUp() {
134134
List<ResolveIntent> resolveIntentList = mergeIntents(this, MediaIntents.newSelectPictureIntent(), GeoIntents.newNavigationIntent(""));
135-
IntentLookUp.lookUpAppsByAppName(this, resolveIntentList, "Maps");
135+
IntentLookUp.lookUpAppsByAppName(this, resolveIntentList, new ArrayList<String>(Arrays.asList("Maps")));
136136
LaunchIntent.withButtomSheetAsList(this, resolveIntentList, "launch using", new ResolvedIntentListener() {
137137
@Override
138138
public void onIntentSelected(Object resolveIntent) {
@@ -144,7 +144,7 @@ public void onIntentSelected(Object resolveIntent) {
144144

145145
private void arrangeInPreference() {
146146
List<ResolveIntent> resolveIntentList = mergeIntents(this, MediaIntents.newSelectPictureIntent(), GeoIntents.newNavigationIntent(""));
147-
PreferenceIntent.preferredIntent(this, PreferenceType.CUSTOM_APPNAME, new ArrayList<String>(Arrays.asList(new String[]{"Maps","Photo"})), resolveIntentList);
147+
PreferenceIntent.preferredIntent(this, PreferenceType.CUSTOM_APPNAME, new ArrayList<String>(Arrays.asList(new String[]{"Maps", "Photo"})), resolveIntentList);
148148
LaunchIntent.withButtomSheetAsList(this, resolveIntentList, "launch using", new ResolvedIntentListener() {
149149
@Override
150150
public void onIntentSelected(Object resolveIntent) {

0 commit comments

Comments
 (0)