Skip to content

Commit

Permalink
Merge branch 'android_fix' of https://github.com/DDRBoxman/MPD
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 28, 2023
2 parents 9396ffb + 201e081 commit 09a0f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
targetCompatibility = JavaVersion.VERSION_1_9
}
kotlinOptions {
jvmTarget = "1.9"
jvmTarget = "9"
}
packaging {
resources {
Expand Down
6 changes: 3 additions & 3 deletions android/app/src/main/java/org/musicpd/Receiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public class Receiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.d("Receiver", "onReceive: " + intent);
if (intent.getAction() == "android.intent.action.BOOT_COMPLETED") {
if (Settings.Preferences.getBoolean(context,
Settings.Preferences.KEY_RUN_ON_BOOT,
if (BOOT_ACTIONS.contains(intent.getAction())) {
if (Preferences.getBoolean(context,
Preferences.KEY_RUN_ON_BOOT,
false)) {
final boolean wakelock =
Preferences.getBoolean(context,
Expand Down

0 comments on commit 09a0f7a

Please sign in to comment.