summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authororionlee <orionlee@yahoo.com>2019-09-01 13:15:02 -0700
committerorionlee <orionlee@yahoo.com>2019-09-24 10:15:25 -0700
commit8dc9939736b3b1381a8e550c05adc853de4833b5 (patch)
treea804ebda6f4e05c0a4a314394c0976a5b52a99ba /core
parent0ddda3a0d2719d4bae701ff8106501ade8bf4984 (diff)
downloadAntennaPod-8dc9939736b3b1381a8e550c05adc853de4833b5.zip
change refreshAllFeeds() main thread call guard to exception.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java3
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());