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