From 31fc8a77c8b0a14c172887d2fc7ccae5b346e57f Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Mon, 4 Apr 2022 10:40:33 +0530 Subject: [PATCH] [Gradle] Format java source code --- CONTRIBUTING.md | 2 +- .../views/virtualkeys/VirtualKeysInfo.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0ed056162..71eb0e04c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,7 +19,7 @@ If you face `AAPT2` issue while building AndroidIDE in the IDE itself, specify t ## Source code format The source code must have `4-space` indentation (soft tab). Java source code is formatted using `google-java-format` with `AOSP` style formatting. -You can execute `./gradlew format` in terminal to format all Java source files using Google Java Format. +You can execute `./gradlew formatJavaSources` in terminal to format all Java source files using Google Java Format. **This will commit the changes as well**. ## Issues & Pull requests diff --git a/emulatorview/src/main/java/com/itsaky/androidide/views/virtualkeys/VirtualKeysInfo.java b/emulatorview/src/main/java/com/itsaky/androidide/views/virtualkeys/VirtualKeysInfo.java index 507e62963..909a2aac9 100755 --- a/emulatorview/src/main/java/com/itsaky/androidide/views/virtualkeys/VirtualKeysInfo.java +++ b/emulatorview/src/main/java/com/itsaky/androidide/views/virtualkeys/VirtualKeysInfo.java @@ -36,20 +36,20 @@ import org.json.JSONObject; * *

Examples: {@code # Empty: [] * - *

# Single row: [[ESC, TAB, CTRL, ALT, {key: '-', + *

# Single row: [[ESC, TAB, CTRL, ALT, {key: '-', * popup: '|'}, DOWN, UP]] * - *

# 2 row: [['ESC','/',{key: '-', popup: + *

# 2 row: [['ESC','/',{key: '-', popup: * '|'},'HOME','UP','END','PGUP'], ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']] * - *

# Advance: [[ {key: ESC, popup: {macro: "CTRL f d", - * display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key: ALT, - * popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a", display: - * A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key: RIGHT, - * popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key: + *

# Advance: [[ {key: ESC, popup: {macro: "CTRL f + * d", display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key: + * ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a", + * display: A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key: + * RIGHT, popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key: * KEYBOARD, popup: {macro: "CTRL d", display: exit}} ]] * - *

} + *

} * *

Aliases are also allowed for the keys that you can pass as {@code extraKeyAliasMap}. Check * {@link VirtualKeysConstants#CONTROL_CHARS_ALIASES}.