resetInstanceForTesting method
仅用于测试:重置单例持有的 SharedPreferences 缓存与 in-flight Future, 使下一个 init() 走冷启动路径。生产代码不得调用。
Implementation
@visibleForTesting
void resetInstanceForTesting() {
_prefs = null;
_initFuture = null;
}
仅用于测试:重置单例持有的 SharedPreferences 缓存与 in-flight Future, 使下一个 init() 走冷启动路径。生产代码不得调用。
@visibleForTesting
void resetInstanceForTesting() {
_prefs = null;
_initFuture = null;
}