Fixed wrong res & Fixed wrong Id after modified
This commit is contained in:
parent
0a71e3949d
commit
1ccd3656a2
@ -108,11 +108,10 @@ public class DnsServerConfigFragment extends PreferenceFragment implements Toolb
|
||||
Integer.parseInt(((EditTextPreference) findPreference("serverPort")).getText())
|
||||
));
|
||||
} else {
|
||||
Daedalus.configurations.getCustomDnsServers().set(index, new CustomDnsServer(
|
||||
((EditTextPreference) findPreference("serverName")).getText(),
|
||||
((EditTextPreference) findPreference("serverAddress")).getText(),
|
||||
Integer.parseInt(((EditTextPreference) findPreference("serverPort")).getText())
|
||||
));
|
||||
CustomDnsServer server = Daedalus.configurations.getCustomDnsServers().get(index);
|
||||
server.setName(((EditTextPreference) findPreference("serverName")).getText());
|
||||
server.setAddress(((EditTextPreference) findPreference("serverAddress")).getText());
|
||||
server.setPort(Integer.parseInt(((EditTextPreference) findPreference("serverPort")).getText()));
|
||||
}
|
||||
getActivity().finish();
|
||||
break;
|
||||
|
@ -2,7 +2,7 @@
|
||||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<shortcut
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_settings_black_24dp"
|
||||
android:icon="@drawable/ic_settings"
|
||||
android:shortcutDisabledMessage="@string/action_settings"
|
||||
android:shortcutId="settings"
|
||||
android:shortcutLongLabel="@string/action_settings"
|
||||
|
Loading…
Reference in New Issue
Block a user