profileviewer cleanup
This commit is contained in:
parent
7d4260b36f
commit
4df4a22997
1 changed files with 2 additions and 3 deletions
|
@ -111,8 +111,7 @@ public class NSProfileViewerFragment extends Fragment implements PluginBase, Pro
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NSProfileViewerFragment newInstance() {
|
public static NSProfileViewerFragment newInstance() {
|
||||||
NSProfileViewerFragment fragment = new NSProfileViewerFragment();
|
return new NSProfileViewerFragment();
|
||||||
return fragment;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setContent() {
|
private void setContent() {
|
||||||
|
@ -161,7 +160,7 @@ public class NSProfileViewerFragment extends Fragment implements PluginBase, Pro
|
||||||
SharedPreferences.Editor editor = settings.edit();
|
SharedPreferences.Editor editor = settings.edit();
|
||||||
editor.putString("profile", profile.getData().toString());
|
editor.putString("profile", profile.getData().toString());
|
||||||
editor.putString("activeProfile", profile.getActiveProfile());
|
editor.putString("activeProfile", profile.getActiveProfile());
|
||||||
editor.commit();
|
editor.apply();
|
||||||
if (Config.logPrefsChange)
|
if (Config.logPrefsChange)
|
||||||
log.debug("Storing profile");
|
log.debug("Storing profile");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue