From 8aba3e7e819c7c6ce943fe5011d4ca70a187cc5d Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 18 May 2023 00:00:44 -0700 Subject: [PATCH] Add nx for logout --- app/src/main/java/gallery/memories/NativeX.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/gallery/memories/NativeX.kt b/app/src/main/java/gallery/memories/NativeX.kt index 13102cbf..1ca64913 100644 --- a/app/src/main/java/gallery/memories/NativeX.kt +++ b/app/src/main/java/gallery/memories/NativeX.kt @@ -106,6 +106,11 @@ import java.net.URLDecoder mAccountService.login(baseUrl, loginFlowUrl) } + @JavascriptInterface + fun logout() { + mAccountService.loggedOut() + } + @JavascriptInterface fun setThemeColor(color: String?, isDark: Boolean) { // Save for getting it back on next start