Example #1
0
 private void setFirstViewVisibility(boolean visible) {
   if (firstView != null) {
     firstView.setVisibility(visible ? View.VISIBLE : View.GONE);
   }
   validationBar.setVisibility(visible ? View.GONE : View.VISIBLE);
   settingsContainer.setVisibility(visible ? View.GONE : View.VISIBLE);
 }
Example #2
0
 private void updateAccountInfos(final SipProfile acc) {
   if (acc != null && acc.id != SipProfile.INVALID_ID) {
     setFirstViewVisibility(false);
   } else {
     if (firstView == null) {
       firstView = new AccountCreationFirstView(parent);
       ViewGroup globalContainer = (ViewGroup) settingsContainer.getParent();
       firstView.setOnAccountCreationFirstViewListener(this);
       globalContainer.addView(firstView);
     }
     setFirstViewVisibility(true);
   }
 }