Skip to content

Commit

Permalink
react on call button in dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurzaczek committed Jun 2, 2014
1 parent 1108bbe commit 5db077a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/net/zaczek/launcherforblind/DialerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void onCreate(Bundle savedInstanceState) {
txtCurrentDigit = (TextView) findViewById(R.id.txtCurrentDigit);
txtCurrentDigit.setText(R.string.digit_help);
}

@Override
protected boolean announceHelp() {
if (Settings.announceDialerHelp()) {
Expand All @@ -63,6 +63,12 @@ protected boolean announceHelp() {
return false;
}

@Override
protected void onExecute() {
super.onExecute();
callCurrentNumber();
}

@Override
public boolean onTouchEvent(MotionEvent event) {
int action = event.getAction();
Expand Down Expand Up @@ -168,7 +174,7 @@ private void callCurrentNumber() {
// length.
say(getString(R.string.invalid_number));
} else {
StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < dialedNumber.length(); i++) {
sb.append(dialedNumber.charAt(i) + " ");
}
Expand All @@ -177,7 +183,7 @@ private void callCurrentNumber() {
}
} else {
// actually dial
Helper.dial(this, dialedNumber);
Helper.dial(this, dialedNumber);
}
}
}

0 comments on commit 5db077a

Please sign in to comment.