mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
delete example activity for leaflet
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
1aa15ebd95
commit
ae485d1d80
@ -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" />
|
||||||
|
@ -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");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -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() {
|
||||||
|
@ -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>
|
|
Loading…
Reference in New Issue
Block a user