-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
Signed-off-by: TheRemakerMan <farzasz7@gmail.com> Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Bumps [org.jetbrains.kotlin.android](https://github.com/JetBrains/kotlin) from 1.8.0 to 1.8.20. - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.8.0...v1.8.20) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin.android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlin:kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20. - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.8.10...v1.8.20) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin:kotlin-reflect dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [com.squareup:kotlinpoet](https://github.com/square/kotlinpoet) from 1.12.0 to 1.13.0. - [Release notes](https://github.com/square/kotlinpoet/releases) - [Changelog](https://github.com/square/kotlinpoet/blob/master/docs/changelog.md) - [Commits](square/kotlinpoet@1.12.0...1.13.0) --- updated-dependencies: - dependency-name: com.squareup:kotlinpoet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.4. - [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases) - [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md) - [Commits](Kotlin/kotlinx.coroutines@1.6.1...1.6.4) --- updated-dependencies: - dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlin:kotlin-scripting-compiler](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20. - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md) - [Commits](JetBrains/kotlin@v1.8.10...v1.8.20) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin:kotlin-scripting-compiler dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
…erences Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
… summary Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
@@ -24,6 +24,6 @@ fun CodeEditor.setLanguageTheme(language: EditorLanguage) { | |||
* Sets the font and enables highlighting of the current line for the code editor. | |||
*/ | |||
fun CodeEditor.setFont() { | |||
typefaceText = ResourcesCompat.getCachedFont(context, R.font.noto_sans_mono) | |||
typefaceText = ResourcesCompat.getFont(context, R.font.noto_sans_mono) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getCachedFont would be better here i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the getCachedFont method, the font will not be loaded since it is not cached.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It checks if its cached and sets it. atleast in emulator, it loads properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested on a real device? When using the getCachedFont()
method on my device, the font simply didn't load.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it did work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check last artifact (not pr's artifact)
<resources> | ||
<string-array name="java_version_entries"> | ||
<item>8</item> | ||
<item>11</item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about other version? For ex if you just want to use text blocks and want compatibility with Java 16, you can just use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, i will add every java version from 8 to 17.
also added prefs object class.