This commit is contained in:
lunaticbum 2024-08-12 17:42:51 +09:00
parent dde2da6989
commit 87629f0423
4 changed files with 17 additions and 3 deletions

View File

@ -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()) var dialog = AlertDialog.Builder(requireContext())
dialog.setTitle("앱 실행 확인") dialog.setTitle("앱 실행 확인")
dialog.setMessage("${searchString} 검색 결과 '${packageList[0].appName}' 준비됨") dialog.setMessage("${searchString} 검색 결과 '${packageList[0].appName}' 준비됨")

View File

@ -54,7 +54,7 @@ internal class RssAdapter(private val items: List<Rss>, private val context: Con
setTextColor(ContextCompat.getColor(context, setTextColor(ContextCompat.getColor(context,
getColorResId(context, com.google.android.material.R.attr.colorPrimary))) getColorResId(context, com.google.android.material.R.attr.colorPrimary)))
setTypeface(null, Typeface.BOLD) setTypeface(null, Typeface.BOLD)
textSize = 18f textSize = 20f
} }
/* reset customization for rest */ /* reset customization for rest */
} else { } else {

View File

@ -19,6 +19,7 @@
package rasel.lunar.launcher.home package rasel.lunar.launcher.home
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Intent import android.content.Intent
import android.content.IntentFilter import android.content.IntentFilter
import android.content.SharedPreferences import android.content.SharedPreferences
@ -139,6 +140,11 @@ internal class LauncherHome : Fragment() {
} else { } else {
QuickAccess().show(fragManager, BOTTOM_SHEET_TAG) 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 -> {} else -> {}
} }
return false return false
@ -157,6 +163,14 @@ internal class LauncherHome : Fragment() {
} else { } else {
expandNotificationPanel(requireContext()) 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 -> {} else -> {}
} }
return false return false

View File

@ -420,7 +420,7 @@ class SimpleFingerGestures : OnTouchListener {
this.targetView = targetView this.targetView = targetView
ga = GestureAnalyser() ga = GestureAnalyser()
this.mContext?.resources?.displayMetrics?.let { this.mContext?.resources?.displayMetrics?.let {
screenHeight = (it.heightPixels * 0.18).toInt() screenHeight = (it.heightPixels * 0.2).toInt()
ga.minValue = Math.max(screenHeight, 100) ga.minValue = Math.max(screenHeight, 100)
} }
this.onFingerGestureListener = onFingerGestureListener this.onFingerGestureListener = onFingerGestureListener