Kaydet (Commit) be61ada1 authored tarafından Christian Lohmaier's avatar Christian Lohmaier Kaydeden (comit) Tomaž Vajngerl

android: make strikethrough work (it's not .uno:StrikeOut, but .uno:Strikeout)

Change-Id: I8d629272cf94eaac406c163c06c9bbdd6a248b79
(cherry picked from commit 233b9b0e)
üst 5fa62323
...@@ -91,7 +91,7 @@ public class InvalidationHandler implements Document.MessageCallback { ...@@ -91,7 +91,7 @@ public class InvalidationHandler implements Document.MessageCallback {
LOKitShell.getToolbarController().onToggleStateChanged(Document.ITALIC, pressed); LOKitShell.getToolbarController().onToggleStateChanged(Document.ITALIC, pressed);
} else if (parts[0].equals(".uno:Underline")) { } else if (parts[0].equals(".uno:Underline")) {
LOKitShell.getToolbarController().onToggleStateChanged(Document.UNDERLINE, pressed); LOKitShell.getToolbarController().onToggleStateChanged(Document.UNDERLINE, pressed);
} else if (parts[0].equals(".uno:StrikeOut")) { } else if (parts[0].equals(".uno:Strikeout")) {
LOKitShell.getToolbarController().onToggleStateChanged(Document.STRIKEOUT, pressed); LOKitShell.getToolbarController().onToggleStateChanged(Document.STRIKEOUT, pressed);
} else { } else {
Log.d(LOGTAG, "LOK_CALLBACK_STATE_CHANGED type uncatched: " + payload); Log.d(LOGTAG, "LOK_CALLBACK_STATE_CHANGED type uncatched: " + payload);
......
...@@ -109,7 +109,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity { ...@@ -109,7 +109,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity {
LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Underline")); LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Underline"));
return true; return true;
case R.id.action_strikeout: case R.id.action_strikeout:
LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:StrikeOut")); LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Strikeout"));
return true; return true;
case R.id.action_keyboard: case R.id.action_keyboard:
showSoftKeyboard(); showSoftKeyboard();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment