浏览代码

Set missing TopBar background color

fixes #2166
Guy Carmeli 7 年前
父节点
当前提交
aa031e7840
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      android/app/src/main/java/com/reactnativenavigation/views/TopBarBorder.java

+ 2
- 1
android/app/src/main/java/com/reactnativenavigation/views/TopBarBorder.java 查看文件

@@ -57,8 +57,9 @@ class TopBarBorder extends ShapeDrawable {
57 57
 
58 58
     @Override
59 59
     protected void onDraw(Shape shape, Canvas canvas, Paint paint) {
60
-        createBorder(canvas);
61 60
         paint.setColor(backgroundColor.getColor(Color.WHITE));
61
+        super.onDraw(shape, canvas, paint);
62
+        createBorder(canvas);
62 63
         canvas.drawPath(border.path, pathPaint);
63 64
     }
64 65