瀏覽代碼

delete example activity for leaflet

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 年之前
父節點
當前提交
ae485d1d80

+ 0 - 4
app/src/main/AndroidManifest.xml

@@ -141,10 +141,6 @@
             android:configChanges="orientation|keyboardHidden|screenSize">
         </activity>
 
-        <activity
-            android:name=".activities.LeafletWebView">
-        </activity>
-
         <receiver android:name=".receivers.PackageReplacedReceiver">
             <intent-filter>
                 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />

+ 0 - 32
app/src/main/java/com/nextcloud/talk/activities/LeafletWebView.kt

@@ -1,32 +0,0 @@
-package com.nextcloud.talk.activities
-
-import android.annotation.SuppressLint
-import android.os.Bundle
-import android.webkit.WebView
-import android.webkit.WebViewClient
-import androidx.appcompat.app.AppCompatActivity
-import com.nextcloud.talk.databinding.LeafletWebviewBinding
-
-class LeafletWebView : AppCompatActivity() {
-    lateinit var binding: LeafletWebviewBinding
-
-
-    @SuppressLint("SetJavaScriptEnabled")
-    override fun onCreate(savedInstanceState: Bundle?) {
-        super.onCreate(savedInstanceState)
-
-        binding = LeafletWebviewBinding.inflate(layoutInflater)
-        setContentView(binding.root)
-
-        binding.webview.settings.javaScriptEnabled = true
-
-        binding.webview.webViewClient = object : WebViewClient() {
-            override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean {
-                view?.loadUrl(url)
-                return true
-            }
-        }
-        binding.webview.loadUrl("file:///android_asset/leafletMapMessagePreview.html?51.5263,13.0384");
-
-    }
-}

+ 0 - 6
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -828,12 +828,6 @@ class ChatController(args: Bundle) :
                 .pushChangeHandler(HorizontalChangeHandler())
                 .popChangeHandler(HorizontalChangeHandler())
         )
-
-        // val leafletIntent = Intent(context, LeafletWebView::class.java)
-        // leafletIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
-        // // fullScreenImageIntent.putExtra("FILE_NAME", filename)
-        // // fullScreenImageIntent.putExtra("IS_GIF", isGif(mimetype))
-        // context!!.startActivity(leafletIntent)
     }
 
     private fun showConversationInfoScreen() {

+ 0 - 13
app/src/main/res/layout/leaflet_webview.xml

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
-
-    <WebView
-        android:id="@+id/webview"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        />
-
-
-</androidx.constraintlayout.widget.ConstraintLayout>