Skip to content

Commit

Permalink
Wasn't checking OpenGTS validation properly
Browse files Browse the repository at this point in the history
Fixes Issue #294
  • Loading branch information
mendhak committed Mar 20, 2015
1 parent 3ea432b commit 0f8f6b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public boolean onPreferenceClick(Preference preference) {

private boolean IsFormValid() {

CustomSwitchPreference chkEnabled = (CustomSwitchPreference) findPreference("autoopengts_enabled");
if(!chkEnabled.isChecked()) {
return true;
}

MaterialEditTextPreference txtOpenGTSServer = (MaterialEditTextPreference) findPreference("opengts_server");
MaterialEditTextPreference txtOpenGTSServerPort = (MaterialEditTextPreference) findPreference("opengts_server_port");
MaterialListPreference txtOpenGTSCommunicationMethod = (MaterialListPreference) findPreference("opengts_server_communication_method");
Expand Down

0 comments on commit 0f8f6b5

Please sign in to comment.