-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android - bool读取错误 #988
Comments
implementation 'com.tencent:mmkv:1.2.14' |
其他的bool都正确,唯独这个隐私弹窗的值错误,跟bool值无关,试过了int,依然不正确。 |
You should provide logs of MMKV. |
Most of the case, you could solve it by setting |
MMKV Log(中间分割线上面是初次启动并设置true,下面是第二次启动) ---------------------------- PROCESS STARTED (1398) for package com.atlantis.launcher ---------------------------- |
You should never store mmkv as a static variable. |
Ignore it. Check my latest reply instead. |
That's strange. I guess you have to make a demo to figure it out. |
Any updates yet? |
Closed due to inactive. |
平台:Android
背景:隐私弹窗的功能,使用mmkv,bool标志
错误case描述:隐私弹窗弹出后,已经同意后,在已经设置为true的情况后,下一次启动依然读取到的默认值(false)
日志(对应下面的关键代码操作):
关键代码:
The text was updated successfully, but these errors were encountered: