mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Optimizations and updates
This commit is contained in:
parent
75d90e3b1c
commit
6508577183
6 changed files with 3 additions and 22 deletions
|
|
@ -52,13 +52,8 @@ class AppMenuAdapter(
|
|||
|
||||
interface OnItemLongClickListener {
|
||||
fun onItemLongClick(
|
||||
appInfo: LauncherActivityInfo,
|
||||
userHandle: UserHandle,
|
||||
userProfile: Int,
|
||||
textView: TextView,
|
||||
actionMenuLayout: LinearLayout,
|
||||
editView: LinearLayout,
|
||||
position: Int
|
||||
actionMenuLayout: LinearLayout
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -95,13 +90,8 @@ class AppMenuAdapter(
|
|||
} else {
|
||||
|
||||
itemLongClickListener.onItemLongClick(
|
||||
app,
|
||||
apps[position].second,
|
||||
apps[position].third,
|
||||
textView,
|
||||
actionMenuLayout,
|
||||
editView,
|
||||
position
|
||||
actionMenuLayout
|
||||
)
|
||||
return@setOnLongClickListener true
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -998,13 +998,8 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
|
||||
|
||||
override fun onItemLongClick(
|
||||
appInfo: LauncherActivityInfo,
|
||||
userHandle: UserHandle,
|
||||
userProfile: Int,
|
||||
textView: TextView,
|
||||
actionMenuLayout: LinearLayout,
|
||||
editView: LinearLayout,
|
||||
position: Int
|
||||
) {
|
||||
textView.visibility = View.INVISIBLE
|
||||
animations.fadeViewIn(actionMenuLayout)
|
||||
|
|
|
|||
|
|
@ -1,15 +1,11 @@
|
|||
package eu.ottop.yamlauncher.settings
|
||||
|
||||
import android.Manifest
|
||||
import android.content.pm.PackageManager
|
||||
import android.os.Bundle
|
||||
import android.widget.Toast
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import androidx.preference.SwitchPreference
|
||||
import eu.ottop.yamlauncher.R
|
||||
import eu.ottop.yamlauncher.utils.AppUtils
|
||||
import eu.ottop.yamlauncher.utils.PermissionUtils
|
||||
|
||||
class AppMenuSettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
plugins {
|
||||
id("com.android.application") version "8.6.0" apply false
|
||||
id("com.android.application") version "8.6.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue