Commit b7b83e11 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Removes web view cookies.

parent 26ead887
......@@ -6,6 +6,7 @@ import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.webkit.CookieManager
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.core.net.toUri
......@@ -56,6 +57,11 @@ class OauthWebViewActivity : AppCompatActivity() {
}
}
override fun onDestroy() {
super.onDestroy()
CookieManager.getInstance().removeAllCookies(null)
}
override fun onBackPressed() {
if (web_view.canGoBack()) {
web_view.goBack()
......
......@@ -7,6 +7,7 @@ import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.webkit.CookieManager
import android.webkit.WebView
import android.webkit.WebViewClient
import chat.rocket.android.R
......@@ -52,6 +53,11 @@ class SsoWebViewActivity : AppCompatActivity() {
}
}
override fun onDestroy() {
super.onDestroy()
CookieManager.getInstance().removeAllCookies(null)
}
override fun onBackPressed() {
if (web_view.canGoBack()) {
web_view.goBack()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment