From e32aa92247dba5c495c40b5794adf537dcaa04cb Mon Sep 17 00:00:00 2001 From: CyberGlitch01 Date: Tue, 12 Sep 2023 07:55:28 +0530 Subject: [PATCH] fix: Loading json textmate file when kotlin file opened --- .../java/android/code/editor/utils/LanguageModeHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/android/code/editor/utils/LanguageModeHandler.java b/app/src/main/java/android/code/editor/utils/LanguageModeHandler.java index d111f27..864578f 100644 --- a/app/src/main/java/android/code/editor/utils/LanguageModeHandler.java +++ b/app/src/main/java/android/code/editor/utils/LanguageModeHandler.java @@ -33,6 +33,8 @@ public static String getLanguageModeForExtension(String ext) { return Language.JavaScript; } else if (ext.equals("md")) { return Language.Markdown; + } else if (ext.equals("kt")) { + return Language.Kt; } else { return Language.JSON; }