...
This commit is contained in:
@@ -428,6 +428,11 @@ internal class LauncherActivity : CommonActivity() {
|
||||
return super.dispatchGenericMotionEvent(ev)
|
||||
}
|
||||
|
||||
fun floatClick(v : View) {
|
||||
Blog.LOGE("v >>> ${v}")
|
||||
showContents(v.id)
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
Blog.LOGE("onNewIntent intent >> ${intent}")
|
||||
if(intent?.action?.equals(Intent.ACTION_SEND) == true &&
|
||||
@@ -524,10 +529,15 @@ internal class LauncherActivity : CommonActivity() {
|
||||
/* handle navigation back events */
|
||||
handleBackPress()
|
||||
updateLocationService()
|
||||
binding.feeds.isChecked = true
|
||||
|
||||
|
||||
val intent = Intent(this, BluetoothManager::class.java)
|
||||
ContextCompat.startForegroundService(this, intent)
|
||||
showContents(binding.feeds.id)
|
||||
binding.floatingActionMenu.setOnMenuButtonClickListener { v->
|
||||
Blog.LOGE("v >> ${v}")
|
||||
showContents(v.id)
|
||||
}
|
||||
}
|
||||
|
||||
fun showContents(id : Int) {
|
||||
|
||||
@@ -73,9 +73,9 @@ class BluetoothManager : Service() {
|
||||
val filter = IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED)
|
||||
registerReceiver(bluetoothreceiver, filter)
|
||||
refreshFeeds()
|
||||
GeckoWeb(applicationContext).apply {
|
||||
loadUrl("https://arca.live/b/live")
|
||||
}
|
||||
// GeckoWeb(applicationContext).apply {
|
||||
// loadUrl("https://arca.live/b/live")
|
||||
// }
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent?): IBinder? {
|
||||
|
||||
@@ -619,6 +619,12 @@ class GeckoWeb : BWebview {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
decoViews?.forEach {
|
||||
if (it.id == R.id.back) {
|
||||
it.setOnClickListener { session.goBack() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCanGoBack(session: GeckoSession, canGoBack: Boolean) {
|
||||
|
||||
@@ -630,6 +630,7 @@ internal class RssHome : Fragment() {
|
||||
binding.geckoWeb.decoViews.add(binding.hide)
|
||||
binding.geckoWeb.decoViews.add(binding.vote)
|
||||
binding.geckoWeb.decoViews.add(binding.progressBar)
|
||||
binding.geckoWeb.decoViews.add(binding.back)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user