diff options
author | orionlee <orionlee@yahoo.com> | 2019-09-01 13:15:02 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-09-24 10:15:25 -0700 |
commit | 8dc9939736b3b1381a8e550c05adc853de4833b5 (patch) | |
tree | a804ebda6f4e05c0a4a314394c0976a5b52a99ba | |
parent | 0ddda3a0d2719d4bae701ff8106501ade8bf4984 (diff) | |
download | AntennaPod-8dc9939736b3b1381a8e550c05adc853de4833b5.zip |
change refreshAllFeeds() main thread call guard to exception.
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java index cd5a83f48..4c15f5f00 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java @@ -158,8 +158,7 @@ public final class DBTasks { } if (Looper.myLooper() == Looper.getMainLooper()) { - Log.wtf(TAG, "DBTasks.refreshAllFeeds() must not be called from the main thread"); - return; + throw new IllegalStateException("DBTasks.refreshAllFeeds() must not be called from the main thread."); } refreshFeeds(context, DBReader.getFeedList()); |