Don't spam the logs when doing unit tests (#7081)

This commit is contained in:
ByteHamster 2024-04-11 23:50:25 +02:00 committed by GitHub
parent d9e84f8c38
commit 863d4c3b61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package de.danoeh.antennapod;
import android.app.Application;
import android.os.StrictMode;
import android.util.Log;
import com.google.android.material.color.DynamicColors;
@ -11,6 +12,8 @@ import org.greenrobot.eventbus.EventBusException;
/** Main application class. */
public class PodcastApp extends Application {
private static final String TAG = "PodcastApp";
@Override
public void onCreate() {
super.onCreate();
@ -36,7 +39,7 @@ public class PodcastApp extends Application {
.sendNoSubscriberEvent(false)
.installDefaultEventBus();
} catch (EventBusException e) {
e.printStackTrace();
Log.d(TAG, e.getMessage());
}
DynamicColors.applyToActivitiesIfAvailable(this);