Skip to content

revision 4.1.0 — code review findings#7

Closed
Copilot wants to merge 1 commit into
temporaryfrom
copilot/sub-pr-6
Closed

revision 4.1.0 — code review findings#7
Copilot wants to merge 1 commit into
temporaryfrom
copilot/sub-pr-6

Conversation

Copilot AI commented Mar 11, 2026

Copy link
Copy Markdown

Reviewed the revision 4.1.0 PR (improved UI, bug fixes, Android power optimization bypass). No code changes were made; this documents findings from the review.

Critical Bug

  • AlarmRingActivity.onPause / onUserLeaveHint lose intent extras — re-launch intent omits alarm_id, challenge_type, and difficulty, resetting challenge state to defaults mid-session:
    Intent intent = new Intent(this, AlarmRingActivity.class);
    intent.putExtra("alarm_id", alarmId);
    intent.putExtra("challenge_type", challengeType);
    intent.putExtra("difficulty", difficulty);
    intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK);

Deprecation Warnings

  • new Handler() without Looper in onPause — use new Handler(Looper.getMainLooper())
  • Vibrator.vibrate(long[], int) — needs VibrationEffect branch for API 26+
  • setSystemUiVisibility / SYSTEM_UI_FLAG_* — deprecated API 30+; WindowInsetsController preferred
  • getAdapterPosition() in AlarmAdapter — replace with getBindingAdapterPosition()

Minor

  • getStringExtra("challenge_type") can return null; assign a null-safe default after retrieval
  • Replace e.printStackTrace() in AlarmStorage with android.util.Log.e(...)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Mar 11, 2026
Copilot AI changed the title [WIP] Update to version 4.1.0 with UI improvements and bug fixes revision 4.1.0 — code review findings Mar 11, 2026
@Clarence212 Clarence212 deleted the copilot/sub-pr-6 branch April 10, 2026 08:22
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