fixed incorrect status being displayed when the command palette is on
This commit is contained in:
parent
a2651cea62
commit
340b58f1ab
1 changed files with 7 additions and 3 deletions
|
|
@ -70,12 +70,16 @@ abstract public class CommandHandler extends TextEditingHandler {
|
|||
protected void resetStatus() {
|
||||
if (mainView.isCommandPaletteShown()) {
|
||||
statusBar.setText(R.string.commands_select_command);
|
||||
} if (mainView.isTextEditingPaletteShown()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mainView.isTextEditingPaletteShown()) {
|
||||
String preview = Clipboard.getPreview(this);
|
||||
statusBar.setText(preview.isEmpty() ? getString(R.string.commands_select_command) : "[ \"" + preview + "\" ]");
|
||||
} else {
|
||||
statusBar.setText(mInputMode);
|
||||
return;
|
||||
}
|
||||
|
||||
statusBar.setText(mInputMode);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue