Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamKwokX committed Sep 9, 2023
1 parent ea0421f commit 7258ed5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(KotlinCompile).configureEach{
// publish
mavenPublishing {
def artifactId = "mvb-android"
def version = "1.0.1"
def version = "1.0.2"
def isSnapshot = false

if (isSnapshot) version += "-SNAPSHOT"
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/pers/shawxingkwok/mvb/android/save.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class SavableMVBData<LV, T, C> @PublishedApi internal constructor(
null -> Saver(UNINITIALIZED, convert).also { state[key] = bundleOf("" to it) }
else -> {
Saver.parcelableLoader = (parcelableComponent ?: savedType.parcelableComponent)?.java?.classLoader
Saver.arrayClass = savedType.java.takeIf { it.isArray } as Class<Array<*>>?
Saver.arrayClass = savedType.java.takeIf { it.isArray && !it.componentType.isPrimitive } as Class<Array<*>>?
Saver.recover = recover

// update [convert] to remove any possible references to old [thisRef].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class StopwatchFragment : Fragment(R.layout.fragment_main) {
adapter.update(sizeChanged)
}

private var timer: Timer? = null
private var timer: Timer? by rmb{ null }

// `isRunning` is not saved because it's best to be false when the app is restored.
private val isRunning by rmb { MutableStateFlow(false) }
Expand Down

0 comments on commit 7258ed5

Please sign in to comment.