Skip to content

Commit 1611a24

Browse files
author
catch-pig
committed
解决sharedEditor.clear()无效的问题
1 parent bb1a411 commit 1611a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/main/java/com/catchpig/compiler/PrefsProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class PrefsProcessor : BaseProcessor() {
8888
}
8989
val clearFunSpec = FunSpec
9090
.builder("clear")
91-
.addStatement("sharedEditor.commit()")
9291
.addStatement("sharedEditor.clear()")
92+
.addStatement("sharedEditor.commit()")
9393
.build()
9494
funSpecs.add(clearFunSpec)
9595
return funSpecs

0 commit comments

Comments
 (0)