Skip to content

Commit

Permalink
Specify that airplane mode is on in Internet failure (getodk#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander authored and lognaturel committed Sep 6, 2018
1 parent f5320f6 commit ea5afd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void denied() {
@OnClick({R.id.upload_button, R.id.sms_upload_button})
public void onUploadButtonsClicked(Button button) {
Transport transport = Transport.fromPreference(GeneralSharedPreferences.getInstance().get(KEY_SUBMISSION_TRANSPORT_TYPE));
if (transport.equals(Transport.Internet) || button.getId() == R.id.upload_button) {
if (!transport.equals(Transport.Sms) && button.getId() == R.id.upload_button) {

ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(
Context.CONNECTIVITY_SERVICE);
Expand Down

0 comments on commit ea5afd9

Please sign in to comment.