Skip to content
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

Always display violated StrictMode policy #15

Open
superdiazzz opened this issue Sep 28, 2021 · 0 comments
Open

Always display violated StrictMode policy #15

superdiazzz opened this issue Sep 28, 2021 · 0 comments

Comments

@superdiazzz
Copy link

I always found this warning in my console

StrictMode policy violation; ~duration=1 ms: android.os.strictmode.DiskReadViolation
        at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504)
        at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:251)
        at java.io.File.exists(File.java:815)
        at android.app.ContextImpl.getDataDir(ContextImpl.java:2253)
        at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:550)
        at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:747)
        at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:400)
        at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174)
        at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174)
        at com.mikhaellopez.ratebottomsheet.PreferenceHelper.<init>(PreferenceHelper.kt:22)
        at com.mikhaellopez.ratebottomsheet.RateBottomSheetManager.<init>(RateBottomSheetManager.kt:34)
        at com.myapp.app.base.BaseActivity.instantiateRateUs(BaseActivity.kt:143)
        at com.myapp.app.HomeTwoActivity.configObjCallback(HomeTwoActivity.kt:327)

Issue source come from the library, how can i deal with this? Although there is no crash but i am not satisfied with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant