Skip to content

Conversation

MihaiCristianCondrea
Copy link
Owner

Summary

  • Restore app usage notifications and in-app update checks in MainActivity
  • Guard navigation rail setup and initialize update notifications
  • Remove unnecessary tools namespace from localized strings

Testing

  • ./gradlew test (failed: SDK location not found)

https://chatgpt.com/codex/tasks/task_e_68c57e5a5690832da36c0b32fad4c6ae

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines 310 to 316
@Override
protected void onResume() {
super.onResume();
AppUsageNotificationsManager appUsageNotificationsManager = new AppUsageNotificationsManager(this);
appUsageNotificationsManager.scheduleAppUsageCheck();
appUpdateNotificationsManager.checkAndSendUpdateNotification();
checkForFlexibleOrImmediateUpdate();

Choose a reason for hiding this comment

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

[P1] Guard update notification call on pre‑O devices

AppUpdateNotificationsManager.checkAndSendUpdateNotification() is annotated @RequiresApi(Build.VERSION_CODES.O) and creates a NotificationChannel. The new onResume calls this method every time without checking the SDK level, so on devices running API 23‑25 (the module’s minSdk is 23) the activity will crash on resume with a NoClassDefFoundError. Add an SDK guard before invoking the method or move the version check inside the manager.

Useful? React with 👍 / 👎.

@MihaiCristianCondrea MihaiCristianCondrea merged commit a8a444a into main Sep 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant