Skip to content

RDKDEV-1187 [FCA] ResidentApp not responding to HomeKey press - #233

Open
suryag23 wants to merge 1 commit into
developfrom
1187
Open

RDKDEV-1187 [FCA] ResidentApp not responding to HomeKey press#233
suryag23 wants to merge 1 commit into
developfrom
1187

Conversation

@suryag23

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an issue where the home UI doesn’t properly track externally-launched apps (e.g., ResidentApp), which can prevent correct focus/visibility transitions on app activation, and bumps the RefUI version.

Changes:

  • Track the last launched app via the onAppLaunchRequest event instead of only via internal launch() calls.
  • Remove launchedAppId assignment from launch() and rely on AppManager events.
  • Bump RefUI version from 6.0.29 to 6.0.30 in package config and UI settings.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
bolt/package-configs/com.rdkcentral.refui.json Bumps packaged app version/versionName to 6.0.30.
accelerator-home-ui/src/AppController.js Updates launched-app tracking to use onAppLaunchRequest and adjusts launch() behavior.
accelerator-home-ui/settings.json Bumps UI-reported version to 6.0.30.
Comments suppressed due to low confidence (1)

accelerator-home-ui/src/AppController.js:197

  • launch(id) no longer sets launchedAppId. If subscribe() hasn't been called yet (or onAppLaunchRequest isn't emitted for this launch path), onAppLifecycleStateChanged won't recognize the launched app and won't update focus/visibility. Keeping the assignment here makes the flow robust while still allowing onAppLaunchRequest to override if needed.
  async launch(id) {
    await AppManager.get().launchApp(id);
  }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 166 to 169
thunder.on('org.rdk.AppManager', 'onAppLaunchRequest', data => {
this.LOG('onAppLaunchRequested ' + JSON.stringify(data));
this.launchedAppId = data.appId;
});
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.

2 participants