20 lines
505 B
Kotlin
20 lines
505 B
Kotlin
package com.sw.dualscreen.utils;
|
|
|
|
import com.sw.dualscreen.MyApp;
|
|
|
|
public class SpTool {
|
|
|
|
public static final String LAST_FACE_TIMESTAMP = "faceTimestamp";
|
|
|
|
public static long getLastFaceTimestamp() {
|
|
return SPUtil.Companion.getInstance(MyApp.getContext(), "default_sp").get(LAST_FACE_TIMESTAMP, 0L);
|
|
}
|
|
|
|
public static void setLastFaceTimestamp(long timestamp) {
|
|
SPUtil.Companion.getInstance(MyApp.getContext(), "default_sp").put(LAST_FACE_TIMESTAMP, timestamp);
|
|
}
|
|
|
|
|
|
|
|
}
|