Merge pull request #3472 from ByteHamster/do-not-spam-logcat
Reduced logcat output
This commit is contained in:
commit
694d0f8d34
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -584,7 +584,6 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
playerLock.unlock();
|
playerLock.unlock();
|
||||||
Log.d(TAG, "getPosition() -> " + retVal);
|
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue