fix displaying nsprofile

This commit is contained in:
Milos Kozak 2018-03-26 08:46:26 +02:00
parent d5e60fa16f
commit 545debde92

View file

@ -79,13 +79,6 @@ public class NSProfileFragment extends SubscriberFragment {
@Override
protected void updateGUI() {
if (MainApp.getConfigBuilder().getProfile() == null) {
noProfile.setVisibility(View.VISIBLE);
return;
} else {
noProfile.setVisibility(View.GONE);
}
ProfileStore profileStore = NSProfilePlugin.getPlugin().getProfile();
if (profileStore != null) {
ArrayList<CharSequence> profileList = profileStore.getProfileList();
@ -97,6 +90,9 @@ public class NSProfileFragment extends SubscriberFragment {
if (profileList.get(p).equals(MainApp.getConfigBuilder().getProfileName()))
profileSpinner.setSelection(p);
}
noProfile.setVisibility(View.GONE);
} else {
noProfile.setVisibility(View.VISIBLE);
}
}