e 6 年之前
父節點
當前提交
fb35cd5b25
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialFragment.java

+ 5 - 1
app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialFragment.java

@@ -475,7 +475,11 @@ public class DetialFragment extends MVPFragment<DetialPresent, DetialModel> impl
475 475
                     RES item = (RES) adapter.getItem(position);
476 476
                     String color = item.getColor();
477 477
                     //选中的时候存储颜色
478
-                    SPUtil.putAndApply(getContext(), Constant.Skin.COLOR_SELECT, "#FF4081" );
478
+//                    SPUtil.putAndApply(getContext(), Constant.Skin.COLOR_SELECT, "#FF4081" );
479
+                    String color1 = item.getColor();
480
+                    color1 = "#"+color1.substring(2);
481
+                    SPUtil.putAndApply(getContext(), Constant.Skin.COLOR_SELECT,color1 );
482
+
479 483
                     EventBus.getDefault().post(mskinBean);
480 484
                     setBanner(position);
481 485
                 }