Fixed wrong res & Fixed wrong Id after modified

This commit is contained in:
PeratX 2017-05-01 11:06:35 +08:00
parent 0a71e3949d
commit 1ccd3656a2
2 changed files with 5 additions and 6 deletions

View File

@ -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;

View File

@ -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"