Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add AdChoices icon to about banner ad #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
MihaiCristianCondrea merged 1 commit into main from codex/fix-visibility-of-why-this-ad-icon
Sep 19, 2025

Conversation

@MihaiCristianCondrea
Copy link
Owner

@MihaiCristianCondrea MihaiCristianCondrea commented Sep 19, 2025

Summary

  • add an AdChoices view to the about screen native ad layout so the "Why this ad" icon can render
  • wire the ad loader to register the AdChoices view with the native ad view

Testing

  • ./gradlew test (fails: Android SDK is not available in the container environment)

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

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 55 to 57
<com.google.android.material.textview.MaterialTextView
android:id="@+id/ad_headline"
android:layout_width="0dp"
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot Sep 19, 2025

Choose a reason for hiding this comment

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

[P1] Reserve space for the AdChoices icon

The newly added AdChoicesView is anchored to the top-right of the constraint layout, but ad_headline still stretches all the way to parent (app:layout_constraintEnd_toEndOf="parent"). With no constraint or margin between these two views the headline text will occupy the same space as the AdChoices icon, so whichever view is drawn last will obscure the other. AdChoices must remain visible for policy compliance, so the headline should constrain to the start of @id/ad_choices (or similar) to avoid overlap.

Useful? React with 👍 / 👎.

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

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /