profileviewer cleanup

This commit is contained in:
Milos Kozak 2016-08-04 19:33:09 +02:00
parent 7d4260b36f
commit 4df4a22997

View file

@ -111,8 +111,7 @@ public class NSProfileViewerFragment extends Fragment implements PluginBase, Pro
}
public static NSProfileViewerFragment newInstance() {
NSProfileViewerFragment fragment = new NSProfileViewerFragment();
return fragment;
return new NSProfileViewerFragment();
}
private void setContent() {
@ -161,7 +160,7 @@ public class NSProfileViewerFragment extends Fragment implements PluginBase, Pro
SharedPreferences.Editor editor = settings.edit();
editor.putString("profile", profile.getData().toString());
editor.putString("activeProfile", profile.getActiveProfile());
editor.commit();
editor.apply();
if (Config.logPrefsChange)
log.debug("Storing profile");
}