-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pedro Paulo Abdenor
committed
Oct 4, 2023
1 parent
5f4f238
commit 0bd2d40
Showing
13 changed files
with
40 additions
and
299 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...net/trustly/inappbrowserandroid/webchromeclient/TrustlyWebChromeClientRedirectActivity.kt
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
...d-app/app/src/main/java/net/trustly/inappbrowserandroid/webchromeclient/TrustlyWebView.kt
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
.../src/main/java/net/trustly/inappbrowserandroid/webchromeclient/WebChromeClientActivity.kt
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...-app/app/src/main/java/net/trustly/inappbrowserandroid/webviewclient/CustomTabActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.trustly.inappbrowserandroid.webviewclient | ||
|
||
import android.annotation.SuppressLint | ||
import android.content.Context | ||
import android.net.Uri | ||
import android.os.Bundle | ||
import androidx.browser.customtabs.CustomTabsIntent | ||
import net.trustly.inappbrowserandroid.TrustlyConstants | ||
import net.trustly.inappbrowserandroid.WebViewBaseActivity | ||
|
||
class CustomTabActivity : WebViewBaseActivity() { | ||
|
||
@SuppressLint("SetJavaScriptEnabled") | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
launchUrl(this@CustomTabActivity, TrustlyConstants.TRUSTLY_URL + "web-view-client-redirect") | ||
} | ||
|
||
private fun launchUrl(context: Context, url: String) { | ||
val customTabsIntent = CustomTabsIntent.Builder().build() | ||
customTabsIntent.launchUrl(context, Uri.parse(url)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
.../app/src/main/java/net/trustly/inappbrowserandroid/webviewclient/WebViewClientActivity.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<resources> | ||
<string name="app_name">InAppBrowserAndroid</string> | ||
<string name="webchrome_client">WebChromeClient</string> | ||
<string name="webview_client">WebViewClient</string> | ||
<string name="custom_tabs">Custom Tabs</string> | ||
</resources> |
Oops, something went wrong.