Permalink
Browse files

Inner loop - Blue: Extract method

  • Loading branch information...
1 parent fcb4030 commit bd961ceaf73948806218999cd1f301c417ebcf2c @CarlosMChica committed May 2, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/src/main/java/me/panavtec/androidbankkata/ShowStatementActivity.java
@@ -15,9 +15,13 @@
@Override protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initView();
+ initAccount().showStatement();
+ }
+
+ private BankAccount initAccount() {
BankAccount account = ShowStatementActivityServiceLocator.getInstance().getAccount();
account.attach(this);
- account.showStatement();
+ return account;
}
private void initView() {

0 comments on commit bd961ce

Please sign in to comment.