Skip to content

Commit fd2731d

Browse files
committed
silenced some noisey log messages in TileDownloaderDelegate
silenced a lint warning for osmdroid.views.MapView
1 parent 9ed1044 commit fd2731d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: android/src/main/java/org/mozilla/osmdroid/tileprovider/modules/TileDownloaderDelegate.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ public boolean isTileCurrent(ITileSource tileSource, MapTile tile) throws HttpHo
107107
*/
108108
public boolean downloadTile(ITileSource tileSource, MapTile tile) {
109109
if (tileSource == null) {
110-
Log.w(LOG_TAG, "tileSource is null");
110+
Log.i(LOG_TAG, "tileSource is null");
111111
return false;
112112
}
113113

114114
if (networkIsUnavailable()) {
115-
Log.w(LOG_TAG, "networkIsUnavailable");
115+
Log.d(LOG_TAG, "networkIsUnavailable");
116116
return false;
117117
}
118118

Diff for: android/src/main/java/org/mozilla/osmdroid/views/MapView.java

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Created by plusminus on 17:45:56 - 25.09.2008
22
package org.mozilla.osmdroid.views;
33

4+
import android.annotation.SuppressLint;
45
import android.content.Context;
56
import android.graphics.Canvas;
67
import android.graphics.Matrix;
@@ -872,6 +873,9 @@ public void computeScroll() {
872873
}
873874
}
874875

876+
/* proguard yells about this method invoking onLayout directly, so we need to suppress
877+
* WrongCall lint warnings. */
878+
@SuppressLint("WrongCall")
875879
@Override
876880
public void scrollTo(int x, int y) {
877881
final int worldSize = TileSystem.MapSize(this.getZoomLevel(false));

0 commit comments

Comments
 (0)