delete example activity for leaflet

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2021-05-29 23:50:12 +02:00 committed by Andy Scherzinger
parent 1aa15ebd95
commit ae485d1d80
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
4 changed files with 0 additions and 55 deletions

View File

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

View File

@ -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");
}
}

View File

@ -828,12 +828,6 @@ class ChatController(args: Bundle) :
.pushChangeHandler(HorizontalChangeHandler()) .pushChangeHandler(HorizontalChangeHandler())
.popChangeHandler(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() { private fun showConversationInfoScreen() {

View File

@ -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>