Commit 1fdbeaed authored by wanglei's avatar wanglei

...

parent 122246be
......@@ -22,6 +22,14 @@ object SearchRecordUtils {
AppPreferences.getInstance().put(SEARCH_RECORD_SP_KEY, string)
}
fun addSearchRecord(value: String) {
val list = getSearchRecord().toMutableList()
list.add(value)
val string = list.joinToString(separator = ",")
AppPreferences.getInstance().put(SEARCH_RECORD_SP_KEY, string)
}
fun clearSearchRecord() {
AppPreferences.getInstance().put(SEARCH_RECORD_SP_KEY, "")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment