Skip to content

Commit

Permalink
Fixed casting after latest changes to toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
plafue committed May 17, 2015
1 parent 4d81938 commit ce48645
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/me/writeily/NoteActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ScrollView;
import android.widget.TextView;
Expand Down Expand Up @@ -353,7 +352,7 @@ public void onClick(View v) {
private class KeyboardBarSmartShortCutListener implements View.OnClickListener {
@Override
public void onClick(View v) {
CharSequence shortcut = ((Button) v).getText();
CharSequence shortcut = ((TextView) v).getText();
if(content.hasSelection()) {
CharSequence selected = content.getText().subSequence(content.getSelectionStart(),
content.getSelectionEnd());
Expand Down

0 comments on commit ce48645

Please sign in to comment.