File tree 1 file changed +6
-0
lines changed
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3
3
import android .content .res .Resources ;
4
4
import android .os .Bundle ;
5
5
import android .support .annotation .Nullable ;
6
+ import android .support .design .chip .Chip ;
6
7
import android .support .v4 .widget .SwipeRefreshLayout ;
7
8
import android .support .v7 .widget .DividerItemDecoration ;
8
9
import android .support .v7 .widget .LinearLayoutManager ;
@@ -67,6 +68,9 @@ public class CardsFragment extends BaseFragment implements CardsContract.CardsVi
67
68
@ Inject
68
69
CardsAdapter mCardsAdapter ;
69
70
71
+ @ BindView (R .id .btn_add_card )
72
+ Chip addCard ;
73
+
70
74
View rootView ;
71
75
72
76
public static CardsFragment newInstance () {
@@ -143,6 +147,7 @@ public void showFetchingProcess() {
143
147
vStateView .setVisibility (View .GONE );
144
148
rvCards .setVisibility (View .GONE );
145
149
pbCards .setVisibility (View .VISIBLE );
150
+ addCard .setVisibility (View .GONE );
146
151
}
147
152
148
153
@@ -248,6 +253,7 @@ public void showSavedCards(List<Card> cards) {
248
253
}
249
254
mCardsAdapter .setCards (cards );
250
255
hideSwipeProgress ();
256
+ addCard .setVisibility (View .VISIBLE );
251
257
}
252
258
253
259
/**
You can’t perform that action at this time.
0 commit comments