(DrawerItem item)
| 657 | } |
| 658 | |
| 659 | private void loadFragment(DrawerItem item) { |
| 660 | |
| 661 | Fragment fragment = (Fragment) item.getFragmentInstace(); |
| 662 | ; |
| 663 | if (item.getTagColor() != null |
| 664 | && !fragment.getArguments().containsKey("tag_color")) { |
| 665 | Bundle tagcolor = fragment.getArguments(); |
| 666 | tagcolor.putInt("tag_color", Color.parseColor(item.getTagColor())); |
| 667 | fragment.setArguments(tagcolor); |
| 668 | } |
| 669 | loadFragment(fragment); |
| 670 | } |
| 671 | |
| 672 | private void loadFragment(Object instance) { |
| 673 | if (instance instanceof Intent) { |
no test coverage detected