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 {
|
interface OnItemLongClickListener {
|
||||||
fun onItemLongClick(
|
fun onItemLongClick(
|
||||||
appInfo: LauncherActivityInfo,
|
|
||||||
userHandle: UserHandle,
|
|
||||||
userProfile: Int,
|
|
||||||
textView: TextView,
|
textView: TextView,
|
||||||
actionMenuLayout: LinearLayout,
|
actionMenuLayout: LinearLayout
|
||||||
editView: LinearLayout,
|
|
||||||
position: Int
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,13 +90,8 @@ class AppMenuAdapter(
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
itemLongClickListener.onItemLongClick(
|
itemLongClickListener.onItemLongClick(
|
||||||
app,
|
|
||||||
apps[position].second,
|
|
||||||
apps[position].third,
|
|
||||||
textView,
|
textView,
|
||||||
actionMenuLayout,
|
actionMenuLayout
|
||||||
editView,
|
|
||||||
position
|
|
||||||
)
|
)
|
||||||
return@setOnLongClickListener true
|
return@setOnLongClickListener true
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -998,13 +998,8 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
|
|
||||||
|
|
||||||
override fun onItemLongClick(
|
override fun onItemLongClick(
|
||||||
appInfo: LauncherActivityInfo,
|
|
||||||
userHandle: UserHandle,
|
|
||||||
userProfile: Int,
|
|
||||||
textView: TextView,
|
textView: TextView,
|
||||||
actionMenuLayout: LinearLayout,
|
actionMenuLayout: LinearLayout,
|
||||||
editView: LinearLayout,
|
|
||||||
position: Int
|
|
||||||
) {
|
) {
|
||||||
textView.visibility = View.INVISIBLE
|
textView.visibility = View.INVISIBLE
|
||||||
animations.fadeViewIn(actionMenuLayout)
|
animations.fadeViewIn(actionMenuLayout)
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,11 @@
|
||||||
package eu.ottop.yamlauncher.settings
|
package eu.ottop.yamlauncher.settings
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
import android.content.pm.PackageManager
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.widget.Toast
|
|
||||||
import androidx.core.content.ContextCompat
|
|
||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import androidx.preference.SwitchPreference
|
import androidx.preference.SwitchPreference
|
||||||
import eu.ottop.yamlauncher.R
|
import eu.ottop.yamlauncher.R
|
||||||
import eu.ottop.yamlauncher.utils.AppUtils
|
|
||||||
import eu.ottop.yamlauncher.utils.PermissionUtils
|
import eu.ottop.yamlauncher.utils.PermissionUtils
|
||||||
|
|
||||||
class AppMenuSettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
class AppMenuSettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
plugins {
|
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
|
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue