Skip to content

Commit

Permalink
#1248 fix: do not use AppCompatActivity for LaunchKeyMapShortcutActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Aug 4, 2024
1 parent 83a10ea commit 9247ed1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.sds100.keymapper.api

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import io.github.sds100.keymapper.Constants
import io.github.sds100.keymapper.R
import io.github.sds100.keymapper.ServiceLocator
Expand All @@ -14,7 +14,11 @@ import splitties.toast.toast
*/

// DON'T MOVE THIS CLASS TO A DIFFERENT PACKAGE BECAUSE IT BREAKS THE API
class LaunchKeyMapShortcutActivity : AppCompatActivity() {
/**
* Use basic Activity, NOT AppCompatActivity so the NoDisplay theme works. Otherwise an
* exception may be thrown because the theme doesn't extend AppCompat.
*/
class LaunchKeyMapShortcutActivity : Activity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down

0 comments on commit 9247ed1

Please sign in to comment.