File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed
Private/Immutable/Android/Java Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1818 -keep interface androidx.** { *; }
1919 </insert >
2020 </proguardAdditions >
21+ <buildGradleAdditions >
22+ <insert >
23+ android {
24+ compileOptions {
25+ sourceCompatibility 1.8
26+ targetCompatibility 1.8
27+ }
28+ }
29+ </insert >
30+ </buildGradleAdditions >
2131 <androidManifestUpdates >
2232 <addElements tag =" queries" >
2333 <intent >
Original file line number Diff line number Diff line change @@ -111,14 +111,17 @@ public void launch(@NonNull final Uri uri) {
111111 context .startActivity (new Intent (Intent .ACTION_VIEW , uri ));
112112 } else {
113113 // Running in a different thread to prevent doing too much work on main thread
114- new Thread (() -> {
115- try {
116- launchCustomTabs (context , uri );
117- } catch (ActivityNotFoundException ex ) {
118- // Failed to launch Custom Tab browser, so launch in browser
119- context .startActivity (new Intent (Intent .ACTION_VIEW , uri ));
120- }
121- }).start ();
114+ new Thread (new Runnable () {
115+ @ Override
116+ public void run () {
117+ try {
118+ launchCustomTabs (context , uri );
119+ } catch (ActivityNotFoundException ex ) {
120+ // Failed to launch Custom Tab browser, so launch in browser
121+ context .startActivity (new Intent (Intent .ACTION_VIEW , uri ));
122+ }
123+ }
124+ }).start ();
122125 }
123126 }
124127
You can’t perform that action at this time.
0 commit comments