Closed eTaernis closed 7 years ago
I have the same problem on LineageOS, 14.1 based on Android 7.1.1.
I don't have time to maintain this app any more. I can merge PRs but won't be able to help otherwise.
I can confirm this issue on Android 7.1.2:
04-20 22:15:42.519 26266 26285 D Canteendroid: Fetching from http://openmensa.org/api/v2/canteens/202/meals/?start=2017-04-19
04-20 22:15:42.549 26266 26266 D Canteendroid: Chose canteen 202
04-20 22:15:42.580 26266 26266 W Canteendroid: Exception: Only the original thread that created a view hierarchy can touch its views.
04-20 22:15:42.580 26266 26266 D Canteendroid: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6892)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1083)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.view.ViewGroup.invalidateChild(ViewGroup.java:5205)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.view.View.invalidateInternal(View.java:13656)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.view.View.invalidate(View.java:13592)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.widget.ProgressBar.invalidateDrawable(ProgressBar.java:1689)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:435)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.graphics.drawable.Drawable.setVisible(Drawable.java:819)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.graphics.drawable.LayerDrawable.setVisible(LayerDrawable.java:1326)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.widget.ProgressBar.swapCurrentDrawable(ProgressBar.java:623)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.widget.ProgressBar.setIndeterminate(ProgressBar.java:608)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.app.ProgressDialog.setIndeterminate(ProgressDialog.java:297)
04-20 22:15:42.580 26266 26266 D Canteendroid: at de.uni_potsdam.hpi.openmensa.helpers.RetrieveFeedTask.doInBackground(RetrieveFeedTask.java:110)
04-20 22:15:42.580 26266 26266 D Canteendroid: at de.uni_potsdam.hpi.openmensa.helpers.RetrieveFeedTask.doInBackground(RetrieveFeedTask.java:29)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.os.AsyncTask$2.call(AsyncTask.java:305)
04-20 22:15:42.580 26266 26266 D Canteendroid: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-20 22:15:42.580 26266 26266 D Canteendroid: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
04-20 22:15:42.580 26266 26266 D Canteendroid: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
04-20 22:15:42.580 26266 26266 D Canteendroid: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
04-20 22:15:42.580 26266 26266 D Canteendroid: at java.lang.Thread.run(Thread.java:761)
04-20 22:15:42.717 26266 26293 D Canteendroid: Fetching from http://openmensa.org/api/v2/canteens/202/meals/?start=2017-04-19
04-20 22:15:42.728 26266 26266 D Canteendroid: Fetched 6 days
The app is still usable after that, though.
That means the default plan is loaded and displayed after the exception popup is accepted.
Fixed and released: https://play.google.com/store/apps/details?id=de.uni_potsdam.hpi.openmensa&hl=en
@domoritz could you mark the current HEAD with a git tag? The f-droid package will then be updated, it is currently very out of date (and especially experiencing this issue).
Done
Hi, this app worked great on my device while I have been on Marshmallow but with my new ROM (Nougat 7.1.1), it does not work. Once I start the app and tries downloading data, I get this error: "Exception: Only the original thread that created a view hierarchy can touch its views."
Please have a look at my logcat: