Improved local hosts settings

This commit is contained in:
PeratX 2017-04-28 17:58:11 +08:00
parent 9823ab39ea
commit b7e5f23a7d
2 changed files with 3 additions and 1 deletions

View File

@ -122,6 +122,8 @@ public class SettingsFragment extends PreferenceFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
view = super.onCreateView(inflater, container, savedInstanceState);
SwitchPreference localHostResolution = (SwitchPreference) findPreference("settings_local_host_resolution");
localHostResolution.setSummary(Daedalus.hostsPath);
return view;
}

View File

@ -50,7 +50,7 @@
android:defaultValue="false"
android:enabled="false"/>
<SwitchPreference
android:key="settings_local_host_resolve"
android:key="settings_local_host_resolution"
android:title="@string/settings_local_hosts_resolve"
android:defaultValue="false"
android:enabled="false"/>