anwilli5 / coin-collection-android-US

Repo for the Coin Collection Android app
GNU General Public License v3.0
10 stars 5 forks source link

Address StrickMode warnings #52

Open sw23 opened 3 years ago

sw23 commented 3 years ago

Address StrickMode warnings

https://developer.android.com/reference/android/os/StrictMode

2021-02-07 01:06:18.701 23391-23391/com.spencerpages.debug D/StrictMode: StrictMode policy violation; ~duration=16 ms: android.os.strictmode.DiskReadViolation at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504) at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1055) at android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:609) at android.database.sqlite.SQLiteSession.executeForLong(SQLiteSession.java:652) at android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:107) at com.coincollection.DatabaseHelper.simpleQueryForLong(DatabaseHelper.java:447) at com.coincollection.DatabaseHelper.fetchTotalCollected(DatabaseHelper.java:302) at com.coincollection.DatabaseHelper.getAllTables(DatabaseHelper.java:333) at com.coincollection.DatabaseAdapter.getAllTables(DatabaseAdapter.java:430) at com.coincollection.MainActivity.updateCollectionListFromDatabase(MainActivity.java:1067) at com.coincollection.MainActivity.updateCollectionListFromDatabaseAndUpdateViewForUIThread(MainActivity.java:1094) at com.coincollection.MainActivity.onWindowFocusChanged(MainActivity.java:1055) at androidx.appcompat.view.WindowCallbackWrapper.onWindowFocusChanged(WindowCallbackWrapper.java:124) at com.android.internal.policy.DecorView.onWindowFocusChanged(DecorView.java:1518) at android.view.View.dispatchWindowFocusChanged(View.java:12766) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1456) at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:2581) at android.view.ViewRootImpl.access$900(ViewRootImpl.java:132) at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4175) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)