Skip to content

Commit df212a3

Browse files
committed
Fixed tags opening on API 30 due to package visibility changes
https://developer.android.com/about/versions/11/privacy/package-visibility
1 parent a712130 commit df212a3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

omniNotes/src/androidTest/java/it/feio/android/omninotes/helpers/TagOpenerHelperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ class TagOpenerHelperTest : BaseAndroidTestCase() {
3939
assertNotNull(openOrGetIntent(testContext, "hashtag:thisCouldBeATag"))
4040

4141
@Test
42-
fun openOrGetIntent_other() = assertNull(openOrGetIntent(testContext, "http://somesite.eu"))
42+
fun openOrGetIntent_other() = assertNull(openOrGetIntent(testContext, "https://somesite.eu"))
4343

4444
}

omniNotes/src/main/AndroidManifest.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,18 @@
318318

319319
</application>
320320

321+
<queries>
322+
<intent>
323+
<action android:name="android.intent.action.DIAL" />
324+
</intent>
325+
<intent>
326+
<action android:name="android.intent.action.SENDTO"/>
327+
<data android:scheme="mailto"/>
328+
</intent>
329+
<intent>
330+
<action android:name="android.intent.action.VIEW" />
331+
<data android:scheme="http"/>
332+
</intent>
333+
</queries>
334+
321335
</manifest>

0 commit comments

Comments
 (0)