Skip to content

Commit

Permalink
解决sharedEditor.clear()无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
catch-pig committed Nov 13, 2019
1 parent bb1a411 commit 1611a24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class PrefsProcessor : BaseProcessor() {
}
val clearFunSpec = FunSpec
.builder("clear")
.addStatement("sharedEditor.commit()")
.addStatement("sharedEditor.clear()")
.addStatement("sharedEditor.commit()")
.build()
funSpecs.add(clearFunSpec)
return funSpecs
Expand Down

0 comments on commit 1611a24

Please sign in to comment.