mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Fixed some shortcut bugs
This commit is contained in:
parent
53f4d792e9
commit
acd3543753
2 changed files with 5 additions and 5 deletions
|
|
@ -11,8 +11,8 @@ android {
|
|||
applicationId = "eu.ottop.yamlauncher"
|
||||
minSdk = 31
|
||||
targetSdk = 34
|
||||
versionCode = 9
|
||||
versionName = "1.5"
|
||||
versionCode = 10
|
||||
versionName = "1.6"
|
||||
}
|
||||
|
||||
dependenciesInfo {
|
||||
|
|
@ -50,6 +50,6 @@ dependencies {
|
|||
implementation("com.google.android.material:material:1.12.0")
|
||||
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
||||
implementation("androidx.preference:preference-ktx:1.2.1")
|
||||
implementation("androidx.activity:activity:1.9.2")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation("androidx.activity:activity-ktx:1.9.3")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.2.0")
|
||||
}
|
||||
|
|
@ -213,7 +213,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
|
||||
val savedView = sharedPreferenceManager.getShortcut(textView)?.toMutableList()
|
||||
|
||||
if (savedView != null && savedView.size < 4) {
|
||||
if (savedView != null && savedView.size > 2 && savedView.size < 4) {
|
||||
savedView.add(3, "false")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue