|
@@ -8,7 +8,6 @@ import android.os.StrictMode;
|
8
|
8
|
import android.support.annotation.NonNull;
|
9
|
9
|
|
10
|
10
|
import com.reactnativenavigation.NavigationApplication;
|
11
|
|
-import com.reactnativenavigation.utils.ViewUtils;
|
12
|
11
|
|
13
|
12
|
import java.io.IOException;
|
14
|
13
|
import java.net.URL;
|
|
@@ -33,10 +32,6 @@ public class JsDevImageLoader {
|
33
|
32
|
private static Drawable tryLoadIcon(String iconDevUri) throws IOException {
|
34
|
33
|
URL url = new URL(iconDevUri);
|
35
|
34
|
Bitmap bitmap = BitmapFactory.decodeStream(url.openStream());
|
36
|
|
- final int dimensions = (int) ViewUtils.convertDpToPixel(48);
|
37
|
|
- // TODO: fix hard coded dimensions -add options to decodeStream
|
38
|
|
- bitmap = Bitmap.createScaledBitmap(bitmap, dimensions, dimensions, false);
|
39
|
35
|
return new BitmapDrawable(NavigationApplication.instance.getResources(), bitmap);
|
40
|
36
|
}
|
41
|
|
-
|
42
|
37
|
}
|