From fdc484a52bcc4b6796ccf868e7a7e17a2ba3f1c0 Mon Sep 17 00:00:00 2001 From: Harshad Vedartham Date: Thu, 15 Aug 2024 23:28:03 -0700 Subject: [PATCH] Cleanups --- app/src/main/AndroidManifest.xml | 2 +- .../activity/openeditor/OpenFromShortcutOrWidgetActivity.java | 4 ---- .../gsantner/markor/frontend/textview/HighlightingEditor.java | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3b96cc7bf..ce51fec55 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -64,7 +64,7 @@ android:label="@string/app_name" android:launchMode="singleInstance" android:taskAffinity=".activity.MainActivity" - android:windowSoftInputMode="stateHidden|adjustResize"> + android:windowSoftInputMode="stateUnchanged|adjustResize"> diff --git a/app/src/main/java/net/gsantner/markor/activity/openeditor/OpenFromShortcutOrWidgetActivity.java b/app/src/main/java/net/gsantner/markor/activity/openeditor/OpenFromShortcutOrWidgetActivity.java index 0b55a9a5e..59cf13349 100644 --- a/app/src/main/java/net/gsantner/markor/activity/openeditor/OpenFromShortcutOrWidgetActivity.java +++ b/app/src/main/java/net/gsantner/markor/activity/openeditor/OpenFromShortcutOrWidgetActivity.java @@ -5,10 +5,6 @@ import net.gsantner.markor.activity.DocumentActivity; import net.gsantner.markor.activity.MarkorBaseActivity; -import net.gsantner.markor.model.Document; -import net.gsantner.markor.util.MarkorContextUtils; - -import java.io.File; /** * This Activity exists solely to launch DocumentActivity with the correct intent diff --git a/app/src/main/java/net/gsantner/markor/frontend/textview/HighlightingEditor.java b/app/src/main/java/net/gsantner/markor/frontend/textview/HighlightingEditor.java index b513682d1..d5dfc845c 100644 --- a/app/src/main/java/net/gsantner/markor/frontend/textview/HighlightingEditor.java +++ b/app/src/main/java/net/gsantner/markor/frontend/textview/HighlightingEditor.java @@ -110,7 +110,7 @@ public boolean onPreDraw() { } @Override - protected void onDraw(final Canvas canvas) { + protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (_numEnabled) {