|
|
|
@ -138,6 +138,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
private Group grpAuthorize;
|
|
|
|
|
private Group grpAdvanced;
|
|
|
|
|
private Group grpFolders;
|
|
|
|
|
private Group grpError;
|
|
|
|
|
|
|
|
|
|
private long id = -1;
|
|
|
|
|
private long copy = -1;
|
|
|
|
@ -238,6 +239,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
grpAuthorize = view.findViewById(R.id.grpAuthorize);
|
|
|
|
|
grpAdvanced = view.findViewById(R.id.grpAdvanced);
|
|
|
|
|
grpFolders = view.findViewById(R.id.grpFolders);
|
|
|
|
|
grpError = view.findViewById(R.id.grpError);
|
|
|
|
|
|
|
|
|
|
// Wire controls
|
|
|
|
|
|
|
|
|
@ -435,7 +437,6 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
pbSave.setVisibility(View.GONE);
|
|
|
|
|
cbIdentity.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
tvError.setVisibility(View.GONE);
|
|
|
|
|
btnHelp.setVisibility(View.GONE);
|
|
|
|
|
btnSupport.setVisibility(View.GONE);
|
|
|
|
|
tvInstructions.setVisibility(View.GONE);
|
|
|
|
@ -445,6 +446,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
grpAuthorize.setVisibility(View.GONE);
|
|
|
|
|
grpAdvanced.setVisibility(View.GONE);
|
|
|
|
|
grpFolders.setVisibility(View.GONE);
|
|
|
|
|
grpError.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
return view;
|
|
|
|
|
}
|
|
|
|
@ -513,7 +515,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
tvIdle.setVisibility(View.GONE);
|
|
|
|
|
tvUtf8.setVisibility(View.GONE);
|
|
|
|
|
grpFolders.setVisibility(View.GONE);
|
|
|
|
|
tvError.setVisibility(View.GONE);
|
|
|
|
|
grpError.setVisibility(View.GONE);
|
|
|
|
|
btnHelp.setVisibility(View.GONE);
|
|
|
|
|
btnSupport.setVisibility(View.GONE);
|
|
|
|
|
tvInstructions.setVisibility(View.GONE);
|
|
|
|
@ -738,7 +740,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
getActivity().invalidateOptionsMenu();
|
|
|
|
|
Helper.setViewsEnabled(view, false);
|
|
|
|
|
pbSave.setVisibility(View.VISIBLE);
|
|
|
|
|
tvError.setVisibility(View.GONE);
|
|
|
|
|
grpError.setVisibility(View.GONE);
|
|
|
|
|
btnHelp.setVisibility(View.GONE);
|
|
|
|
|
btnSupport.setVisibility(View.GONE);
|
|
|
|
|
tvInstructions.setVisibility(View.GONE);
|
|
|
|
@ -1148,7 +1150,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
private void showError(Throwable ex) {
|
|
|
|
|
tvError.setText(Helper.formatThrowable(ex, false));
|
|
|
|
|
tvError.setVisibility(View.VISIBLE);
|
|
|
|
|
grpError.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
final EmailProvider provider = (EmailProvider) spProvider.getSelectedItem();
|
|
|
|
|
if (provider != null && provider.link != null) {
|
|
|
|
|