Skip to content

Commit

Permalink
reworking animations part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
queuejw committed Sep 7, 2024
1 parent 6c3a9da commit f408f93
Show file tree
Hide file tree
Showing 13 changed files with 169 additions and 288 deletions.
11 changes: 5 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId "ru.dimon6018.metrolauncher"
minSdk 21
targetSdk 35
versionCode 53
versionName "1.0 Pre-Alpha 5.1.2.3"
versionCode 54
versionName "Exp. 7743"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled false
Expand Down Expand Up @@ -51,12 +51,12 @@ dependencies {
implementation 'com.google.android.material:material:1.13.0-alpha05'
implementation 'androidx.recyclerview:recyclerview:1.4.0-beta01'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.fragment:fragment-ktx:1.8.2'
implementation 'androidx.fragment:fragment-ktx:1.8.3'
implementation "androidx.dynamicanimation:dynamicanimation:1.1.0-alpha03"
implementation "androidx.room:room-runtime:2.6.1"
implementation "androidx.room:room-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.8.4"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.8.5"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.5"
implementation "androidx.work:work-runtime-ktx:2.9.1"
implementation "androidx.core:core-splashscreen:1.1.0-rc01"

Expand All @@ -65,7 +65,6 @@ dependencies {

implementation 'com.github.shadowalker77:wp7progressbar:1.1.0'
implementation 'io.coil-kt.coil3:coil:3.0.0-alpha10'
implementation 'io.coil-kt.coil3:coil-network-okhttp:3.0.0-alpha10'

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
// testImplementation 'junit:junit:4.13.2'
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/ru/dimon6018/metrolauncher/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ class Main : AppCompatActivity() {
isAlphabetAnimEnabled = false
isTransitionAnimEnabled = false
isLiveTilesAnimEnabled = false
isTilesScreenAnimEnabled = false
isTilesAnimEnabled = false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class NewAllApps: Fragment() {
lifecycleScope.launch(defaultDispatcher) {
val dbList = mainViewModel.getTileDao().getTilesList()
dbList.forEach {
if (it.appPackage == app.appPackage) {
if (it.tilePackage == app.appPackage) {
isAppAlreadyPinned = true
return@forEach
}
Expand Down Expand Up @@ -785,7 +785,7 @@ class NewAllApps: Fragment() {
lifecycleScope.launch(defaultDispatcher) {
val dataList = mainViewModel.getTileDao().getTilesList()
dataList.forEach {
if (it.appPackage == app.appPackage) {
if (it.tilePackage == app.appPackage) {
//db already has this app. we must stop this
return@launch
}
Expand All @@ -802,8 +802,8 @@ class NewAllApps: Fragment() {
pos, id, -1, 0,
isSelected = false,
tileSize = generateRandomTileSize(true),
appLabel = app.appLabel!!,
appPackage = app.appPackage!!
tileLabel = app.appLabel!!,
tilePackage = app.appPackage!!
)
mainViewModel.getTileDao().addTile(item)
}
Expand Down
Loading

0 comments on commit f408f93

Please sign in to comment.