Merge pull request #3472 from ByteHamster/do-not-spam-logcat

Reduced logcat output
This commit is contained in:
H. Lehmann 2019-09-30 19:07:56 +02:00 committed by GitHub
commit 694d0f8d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -63,6 +63,8 @@ public class PodcastApp extends Application {
EventBus.builder() EventBus.builder()
.addIndex(new ApEventBusIndex()) .addIndex(new ApEventBusIndex())
.addIndex(new ApCoreEventBusIndex()) .addIndex(new ApCoreEventBusIndex())
.logNoSubscriberMessages(false)
.sendNoSubscriberEvent(false)
.installDefaultEventBus(); .installDefaultEventBus();
} }

View File

@ -92,11 +92,9 @@ class ApOkHttpUrlLoader implements ModelLoader<String, InputStream> {
@Nullable @Nullable
@Override @Override
public LoadData<InputStream> buildLoadData(@NonNull String model, int width, int height, @NonNull Options options) { public LoadData<InputStream> buildLoadData(@NonNull String model, int width, int height, @NonNull Options options) {
Log.d(TAG, "buildLoadData() called with: " + "model = [" + model + "], width = [" if (TextUtils.isEmpty(model)) {
+ width + "], height = [" + height + "]");
if(TextUtils.isEmpty(model)) {
return null; return null;
} else if(model.startsWith("/")) { } else if (model.startsWith("/")) {
return new LoadData<>(new ObjectKey(model), new AudioCoverFetcher(model)); return new LoadData<>(new ObjectKey(model), new AudioCoverFetcher(model));
} else { } else {
GlideUrl url = new GlideUrl(model); GlideUrl url = new GlideUrl(model);

View File

@ -584,7 +584,6 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
} }
playerLock.unlock(); playerLock.unlock();
Log.d(TAG, "getPosition() -> " + retVal);
return retVal; return retVal;
} }