Skip to content

BugFix mediaControl - #366

Open
mastermichi wants to merge 1 commit into
firebirdberlin:masterfrom
mastermichi:BugFix_MediaControl
Open

BugFix mediaControl#366
mastermichi wants to merge 1 commit into
firebirdberlin:masterfrom
mastermichi:BugFix_MediaControl

Conversation

@mastermichi

@mastermichi mastermichi commented Mar 2, 2023

Copy link
Copy Markdown
Contributor

NotificationReceiver.java
clockLayout.postDelayed(
() -> activity.onConfigurationChanged(activity.getResources().getConfiguration()),
500
);

without effect due to

public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    Log.d(TAG, "onConfigurationChanged()");
    int diff = newConfig.diff(prevConfig);
    **if ((nightDreamUI != null) && (diff != 0)) {
        nightDreamUI.onConfigurationChanged(newConfig);
    }**
    prevConfig = new Configuration(newConfig);
}

diff always 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant