Skip to content

Commit cf3d990

Browse files
docs: fix help ads and update architecture guidance
1 parent a580568 commit cf3d990

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

docs/core/android-architecture-recommendations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ point of user interaction. Here are some best practices for the UI layer:
3939
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
4040
| **Follow Unidirectional Data Flow (UDF).**<br/>Strongly recommended | Follow UDF principles, where ViewModels expose UI state using the observer pattern and receive actions from the UI through method calls. |
4141
| **Use AAC ViewModels if their benefits apply to your app.**<br/>Strongly recommended | Use AndroidX ViewModels to handle business logic and fetch application data to expose UI state to the UI. |
42-
| **Use lifecycle-aware UI state collection.**<br/>Strongly recommended | Collect UI state from the UI using lifecycle-aware APIs such as `repeatOnLifecycle`. |
42+
| **Use lifecycle-aware UI state collection.**<br/>Strongly recommended | Observe `LiveData` with a `LifecycleOwner` (for example, `getViewLifecycleOwner()` in Fragments) so updates stop automatically when the UI is stopped. |
4343
| **Do not send events from the ViewModel to the UI.**<br/>Strongly recommended | Process the event immediately in the ViewModel and cause a state update with the result of handling the event. |
4444
| **Use a single-activity application.**<br/>Recommended | Use Navigation Fragments to navigate between screens and deep link to your app if your app has more than one screen. |
4545

docs/screens/help.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ The Help screen offers the following functionalities, accessible primarily throu
2020
- **Privacy Policy**: Opens a web link to the app's Privacy Policy.
2121
- **Open Source Licenses**: Displays a screen with a list of open-source libraries used in the app and their licenses.
2222

23-
## Ads
24-
The Help page displays a single native ad between the FAQ list and the Contact Us card.
25-
The banner is rendered by `HelpNativeAdBanner` which uses the shared `native_ad` configuration.
26-
An **Ad** label is shown to comply with policy requirements and padding ensures the banner
27-
does not interfere with surrounding content.
28-
See [Ads](settings/privacy/ads.md) for more information on ad configuration.
29-
*(Note: Presence of ads should be confirmed by checking layout files like `activity_help.xml`)*
30-
3123
## Integration
3224
To launch the Help screen, use the following Java code:
3325
```java

0 commit comments

Comments
 (0)