mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-11-01 11:28:30 +00:00
Optimizations and updates
This commit is contained in:
parent
75d90e3b1c
commit
6508577183
5 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 {
|
||||
|
|
|
|||
5
app/src/main/res/mipmap-anydpi/ic_launcher.xml
Normal file
5
app/src/main/res/mipmap-anydpi/ic_launcher.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
5
app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
Normal file
5
app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
Loading…
Reference in a new issue