Scroll to advanced button

pull/147/head
M66B 6 years ago
parent 38d4c4ae88
commit 0ee99f20dc

@ -401,7 +401,7 @@ public class FragmentAccount extends FragmentEx {
new Handler().post(new Runnable() { new Handler().post(new Runnable() {
@Override @Override
public void run() { public void run() {
((ScrollView) view).smoothScrollTo(0, cbSynchronize.getTop()); ((ScrollView) view).smoothScrollTo(0, btnAdvanced.getTop());
} }
}); });
} }

@ -88,7 +88,6 @@ public class FragmentIdentity extends FragmentEx {
private ImageButton ibPro; private ImageButton ibPro;
private Button btnAdvanced; private Button btnAdvanced;
private TextView tvProvider;
private Spinner spProvider; private Spinner spProvider;
private EditText etDomain; private EditText etDomain;
private Button btnAutoConfig; private Button btnAutoConfig;
@ -148,7 +147,6 @@ public class FragmentIdentity extends FragmentEx {
ibPro = view.findViewById(R.id.ibPro); ibPro = view.findViewById(R.id.ibPro);
btnAdvanced = view.findViewById(R.id.btnAdvanced); btnAdvanced = view.findViewById(R.id.btnAdvanced);
tvProvider = view.findViewById(R.id.tvProvider);
spProvider = view.findViewById(R.id.spProvider); spProvider = view.findViewById(R.id.spProvider);
etDomain = view.findViewById(R.id.etDomain); etDomain = view.findViewById(R.id.etDomain);
btnAutoConfig = view.findViewById(R.id.btnAutoConfig); btnAutoConfig = view.findViewById(R.id.btnAutoConfig);
@ -283,7 +281,7 @@ public class FragmentIdentity extends FragmentEx {
new Handler().post(new Runnable() { new Handler().post(new Runnable() {
@Override @Override
public void run() { public void run() {
((ScrollView) view).smoothScrollTo(0, tvProvider.getTop()); ((ScrollView) view).smoothScrollTo(0, btnAdvanced.getTop());
} }
}); });
} }

Loading…
Cancel
Save