From 62d1cb2460cb86f803cc5f2a05249580d7c74e98 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 19 Nov 2021 12:02:22 +0100 Subject: [PATCH] updating commons, kotlin, gradle and some details --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 10 ---------- .../simplemobiletools/clock/fragments/TimerFragment.kt | 4 ++-- app/src/main/res/menu/menu.xml | 6 ++++-- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 11 insertions(+), 19 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a6cb63a..5e2415e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -67,9 +67,9 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:d4b6547969' + implementation 'com.github.SimpleMobileTools:Simple-Commons:6cc19172f0' implementation 'com.facebook.stetho:stetho:1.5.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.2' implementation 'com.shawnlin:number-picker:2.4.6' implementation "androidx.preference:preference-ktx:1.1.1" implementation "androidx.work:work-runtime-ktx:2.6.0" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f4c8c08..7664cae 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -54,21 +54,11 @@ android:label="@string/about" android:parentActivityName=".activities.MainActivity" /> - - - - diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt index e172653..719c1fd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt @@ -92,8 +92,8 @@ class TimerFragment : Fragment() { private fun refreshTimers(scrollToLatest: Boolean = false) { activity?.timerHelper?.getTimers { timers -> - activity?.runOnUiThread { - timerAdapter.submitList(timers) { + timerAdapter.submitList(timers) { + activity?.runOnUiThread { if (getView() != null) { if (timerPositionToScrollTo != INVALID_POSITION && timerAdapter.itemCount > timerPositionToScrollTo) { view.timers_list.scrollToPosition(timerPositionToScrollTo) diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 5d6e373..cad6537 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -8,10 +8,12 @@ app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> diff --git a/build.gradle b/build.gradle index 5166e66..187851b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.5.30' + ext.kotlin_version = '1.5.31' repositories { google() @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.2.2' + classpath 'com.android.tools.build:gradle:7.0.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c17b714..22e6c93 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip