From 87629f0423bee05f17ed7a361a99cb2f4b1d7f7c Mon Sep 17 00:00:00 2001 From: lunaticbum <> Date: Mon, 12 Aug 2024 17:42:51 +0900 Subject: [PATCH] ... --- .../kotlin/rasel/lunar/launcher/apps/AppDrawer.kt | 2 +- .../rasel/lunar/launcher/feeds/rss/RssAdapter.kt | 2 +- .../rasel/lunar/launcher/home/LauncherHome.kt | 14 ++++++++++++++ .../rasel/lunar/launcher/utils/SimpleGesture.kt | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/rasel/lunar/launcher/apps/AppDrawer.kt b/app/src/main/kotlin/rasel/lunar/launcher/apps/AppDrawer.kt index b6cd8fc..f3edabb 100644 --- a/app/src/main/kotlin/rasel/lunar/launcher/apps/AppDrawer.kt +++ b/app/src/main/kotlin/rasel/lunar/launcher/apps/AppDrawer.kt @@ -254,7 +254,7 @@ internal class AppDrawer : Fragment() { } } - if (packageList.size == 1 && settingsPrefs!!.getBoolean(KEY_QUICK_LAUNCH, true)) { + if (searchString.length > 2 && packageList.size == 1 && settingsPrefs!!.getBoolean(KEY_QUICK_LAUNCH, true)) { var dialog = AlertDialog.Builder(requireContext()) dialog.setTitle("앱 실행 확인") dialog.setMessage("${searchString} 검색 결과 '${packageList[0].appName}' 준비됨") diff --git a/app/src/main/kotlin/rasel/lunar/launcher/feeds/rss/RssAdapter.kt b/app/src/main/kotlin/rasel/lunar/launcher/feeds/rss/RssAdapter.kt index d76a0a0..34dbaec 100644 --- a/app/src/main/kotlin/rasel/lunar/launcher/feeds/rss/RssAdapter.kt +++ b/app/src/main/kotlin/rasel/lunar/launcher/feeds/rss/RssAdapter.kt @@ -54,7 +54,7 @@ internal class RssAdapter(private val items: List, private val context: Con setTextColor(ContextCompat.getColor(context, getColorResId(context, com.google.android.material.R.attr.colorPrimary))) setTypeface(null, Typeface.BOLD) - textSize = 18f + textSize = 20f } /* reset customization for rest */ } else { diff --git a/app/src/main/kotlin/rasel/lunar/launcher/home/LauncherHome.kt b/app/src/main/kotlin/rasel/lunar/launcher/home/LauncherHome.kt index 5dc2b28..1d678cd 100644 --- a/app/src/main/kotlin/rasel/lunar/launcher/home/LauncherHome.kt +++ b/app/src/main/kotlin/rasel/lunar/launcher/home/LauncherHome.kt @@ -19,6 +19,7 @@ package rasel.lunar.launcher.home import android.annotation.SuppressLint +import android.content.ComponentName import android.content.Intent import android.content.IntentFilter import android.content.SharedPreferences @@ -139,6 +140,11 @@ internal class LauncherHome : Fragment() { } else { QuickAccess().show(fragManager, BOTTOM_SHEET_TAG) } + 2->{ + var startIntene = Intent(Intent.ACTION_MAIN) + startIntene.setComponent(ComponentName("com.mime.dualscreenview","com.mime.dualscreenview.activity.Intro")) + startActivity(startIntene) + } else -> {} } return false @@ -157,6 +163,14 @@ internal class LauncherHome : Fragment() { } else { expandNotificationPanel(requireContext()) } + 2->{ + var startIntene = Intent(Intent.ACTION_MAIN) + startIntene.setComponent(ComponentName("com.samsung.android.app.interpreter","com.samsung.android.app.interpreter.interpretation.view.InterpretationActivity")) + startActivity(startIntene) + } + 3-> { + lActivity!!.startActivity(Intent(requireContext(), SettingsActivity::class.java)) + } else -> {} } return false diff --git a/app/src/main/kotlin/rasel/lunar/launcher/utils/SimpleGesture.kt b/app/src/main/kotlin/rasel/lunar/launcher/utils/SimpleGesture.kt index 7604a6b..8019ea2 100644 --- a/app/src/main/kotlin/rasel/lunar/launcher/utils/SimpleGesture.kt +++ b/app/src/main/kotlin/rasel/lunar/launcher/utils/SimpleGesture.kt @@ -420,7 +420,7 @@ class SimpleFingerGestures : OnTouchListener { this.targetView = targetView ga = GestureAnalyser() this.mContext?.resources?.displayMetrics?.let { - screenHeight = (it.heightPixels * 0.18).toInt() + screenHeight = (it.heightPixels * 0.2).toInt() ga.minValue = Math.max(screenHeight, 100) } this.onFingerGestureListener = onFingerGestureListener