|
@ -50,6 +50,7 @@ public class SendMoneyV2Activity extends BaseActivity implements SendMoneyAction |
|
|
|
|
|
|
|
|
public static String RECIPIENT_DATA = "recipientData"; |
|
|
public static String RECIPIENT_DATA = "recipientData"; |
|
|
private PasswordPromptListener passwordPromptListener; |
|
|
private PasswordPromptListener passwordPromptListener; |
|
|
|
|
|
private SendMoneyScreenManager sendMoneyScreenManager; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
@ -78,12 +79,12 @@ public class SendMoneyV2Activity extends BaseActivity implements SendMoneyAction |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void initialize() { |
|
|
private void initialize() { |
|
|
|
|
|
|
|
|
|
|
|
sendMoneyScreenManager=new SendMoneyScreenManager(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean addScreenToSendMoney(@LayoutRes int layoutID, boolean addTransitionEffect) { |
|
|
public boolean addScreenToSendMoney(@LayoutRes int layoutID, boolean addTransitionEffect) { |
|
|
BaseFragment baseFragment = SendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
|
|
|
|
|
|
BaseFragment baseFragment = sendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
if (baseFragment != null) { |
|
|
if (baseFragment != null) { |
|
|
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
if (addTransitionEffect) |
|
|
if (addTransitionEffect) |
|
@ -98,7 +99,7 @@ public class SendMoneyV2Activity extends BaseActivity implements SendMoneyAction |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public boolean addScreenToSendMoneyOnly(@LayoutRes int layoutID, boolean addTransitionEffect) { |
|
|
public boolean addScreenToSendMoneyOnly(@LayoutRes int layoutID, boolean addTransitionEffect) { |
|
|
BaseFragment baseFragment = SendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
|
|
|
|
|
|
BaseFragment baseFragment = sendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
if (baseFragment != null) { |
|
|
if (baseFragment != null) { |
|
|
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
if (addTransitionEffect) |
|
|
if (addTransitionEffect) |
|
@ -112,7 +113,7 @@ public class SendMoneyV2Activity extends BaseActivity implements SendMoneyAction |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public boolean replaceCurrentScreen(@LayoutRes int layoutID) { |
|
|
public boolean replaceCurrentScreen(@LayoutRes int layoutID) { |
|
|
BaseFragment baseFragment = SendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
|
|
|
|
|
|
BaseFragment baseFragment = sendMoneyScreenManager.getSendMoneyScreenFromId(layoutID); |
|
|
if (baseFragment != null) { |
|
|
if (baseFragment != null) { |
|
|
android.support.v4.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
android.support.v4.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); |
|
|
|
|
|
|
|
@ -318,4 +319,9 @@ public class SendMoneyV2Activity extends BaseActivity implements SendMoneyAction |
|
|
public void updateFinalTranstionToDefault() { |
|
|
public void updateFinalTranstionToDefault() { |
|
|
setDefaultBg(page3TxtView); |
|
|
setDefaultBg(page3TxtView); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void prepareRemainingFragments() { |
|
|
|
|
|
sendMoneyScreenManager.prepareFragmentsLazily(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |