From d2daeee75d12ffaad07c5fef7185fd3fde01b5ab Mon Sep 17 00:00:00 2001 From: Kieran W <41634689+FredHappyface@users.noreply.github.com> Date: Fri, 11 Mar 2022 18:36:29 +0000 Subject: [PATCH] documentation improvements and styles tidy up --- .../fredhappyface/ewesticker/StickerImporter.kt | 4 ++-- .../fredhappyface/ewesticker/StickerSender.kt | 4 +++- app/src/main/res/values-v27/styles.xml | 2 -- app/src/main/res/values/styles.xml | 17 ----------------- .../-sticker-importer/import-stickers.md | 4 ++-- .../-sticker-importer/index.md | 2 +- .../-sticker-sender/index.md | 2 +- .../-sticker-sender/send-sticker.md | 2 +- 8 files changed, 10 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/com/fredhappyface/ewesticker/StickerImporter.kt b/app/src/main/java/com/fredhappyface/ewesticker/StickerImporter.kt index 7400f66..32a56a1 100644 --- a/app/src/main/java/com/fredhappyface/ewesticker/StickerImporter.kt +++ b/app/src/main/java/com/fredhappyface/ewesticker/StickerImporter.kt @@ -29,10 +29,10 @@ class StickerImporter( /** * Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a - * stickerDirPath to the appplication internal storage for access later on by the + * stickerDirPath to the application internal storage for access later on by the * keyboard * - * @param stickerDirPath a URI to the stikers directory to import into EweSticker + * @param stickerDirPath a URI to the stickers directory to import into EweSticker */ fun importStickers(stickerDirPath: String): Int { File(this.context.filesDir, "stickers").deleteRecursively() diff --git a/app/src/main/java/com/fredhappyface/ewesticker/StickerSender.kt b/app/src/main/java/com/fredhappyface/ewesticker/StickerSender.kt index 73c2cb4..fa09aa4 100644 --- a/app/src/main/java/com/fredhappyface/ewesticker/StickerSender.kt +++ b/app/src/main/java/com/fredhappyface/ewesticker/StickerSender.kt @@ -50,7 +50,9 @@ class StickerSender( .filter { isCommitContentSupported(this.currentInputEditorInfo, it) } /** - * TODO + * Start the process of sending a sticker when the sticker is tapped in the + * keyboard. If the sticker type is not supported by the InputConnection then + * doFallbackCommitContent, otherwise doCommitContent * * @param file */ diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml index 4db539d..b53e400 100644 --- a/app/src/main/res/values-v27/styles.xml +++ b/app/src/main/res/values-v27/styles.xml @@ -23,7 +23,5 @@ @color/fg @style/ShapeAppearance.App.MediumComponent - @style/Widget.App.Snackbar - @style/Widget.App.Snackbar.TextView \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c469dd9..f1c9de3 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -21,23 +21,6 @@ @color/fg @style/ShapeAppearance.App.MediumComponent - @style/Widget.App.Snackbar - @style/Widget.App.Snackbar.TextView - - - - - - -