Introducing a new way to review your PRs.

Read the announcement

slickdaddyy / gamehub-oss

privacy oriented gamehub

View on GitHub

13 documents · Updated Nov 19, 2026

docs / launcher-game-detail-and-media

Landscape launcher game detail and media surfaces

Overview

This area covers the launcher surfaces that present a game's detail page, play game media, and render adjacent detail dialogs/resources. In this repository those behaviors are represented mostly as lite patch files under patches/, plus one added runtime helper in lite_resources/smali_classes5/com/xj/landscape/launcher/ui/gamedetail/GameVideoActivity$$ExternalSyntheticLambda0.smali.

patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameDetailActivity.smali.diff changes the game detail activity's intent argument handling: when the activity reads the type string extra from the bundle, the fallback changes from the empty string to "0". Review this as the default detail route mode for callers that omit type; a missing extra no longer flows through as blank.

Video playback is patched through patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameVideoActivity.smali.diff, patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameVideoActivity$mPlayerListener$1.smali.diff, and lite_resources/smali_classes5/com/xj/landscape/launcher/ui/gamedetail/GameVideoActivity$$ExternalSyntheticLambda0.smali. The listener patch invokes GameVideoActivity.I1(...) after making a view visible, so playback readiness now triggers that synthetic method. I1 checks the activity intent extras for is_intro_video; when true it posts a main-thread delayed runnable for 0x4650 ms. The runnable ignores its captured instance except for construction and calls ActivityUtils.k(GameVideoActivity.class), which routes/finishes by class through BlankJ ActivityUtils. I1 then calls GameVideoActivity.b2(), preserving the original follow-on playback setup. The same video activity patch also lowers the ExoPlayer DefaultLoadControl$Builder.setBufferDurationsMs(...) second buffer duration from 0x3a98 (15000 ms) to 0x7d0 (2000 ms), while the third and fourth arguments remain as in the original hunk.

News detail is patched through patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__NewsDetailDialog.smali.diff, patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__NewsDetailDialog$init$5.smali.diff, and patches/res__layout__llauncher_dialog_news_detail.xml.diff. The dialog layout remains a ShapeConstraintLayout containing a NestedScrollView, title/description/top image, EnhanceWebView, source/time row, and share area; the lite patch darkens the root background to #ff111827, makes the WebView wrap_content instead of a fixed @dimen/mw_1000dp, and hides @id/tv_source. The dialog smali patch changes URI handling from scrolling the embedded EnhanceWebView to launching an external android.intent.action.VIEW intent with the URI, and changes bundle parcelable access to direct Bundle.getParcelable(...). The init callback patch adds a null guard around tvSource before setting its text, matching the layout change that makes the source field optional/hidden.

QR login helper behavior is owned here because it backs routeable dialog/login media surfaces. patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__QrLoginHelper.smali.diff rewrites three WeChat API endpoints from production HTTPS hosts to loopback HTTP paths: /sns/oauth2/access_token, /cgi-bin/stable_token, and /cgi-bin/ticket/getticket under http://127.0.0.1. The helper still executes the OAuth/access-token/ticket flow, but the network boundary is local rather than api.weixin.qq.com.

Mock media data is patched in patches/smali_classes5__com__xj__landscape__launcher__data__mock__MockUtilsKt.smali.diff. The large newline-separated media URL string used by mock data keeps some Steam/shared CDN URLs intact but rewrites many uxdl.bigeyes.com image URLs to http://127.0.0.1/uxdl.bigeyes.com/.... Treat this as the source for locally served game art/mock carousel media during launcher-lite runs.

Related layouts owned by this doc tune the presentation around these surfaces. patches/res__layout__llauncher_dialog_download_game_info.xml.diff keeps the download/install game info dialog structure but changes @id/ivClose from @drawable/comm_guide_close_gry to a transparent background, so close affordance visuals may be supplied elsewhere or intentionally hidden. patches/res__layout__llauncher_v4_search_activity.xml.diff hides the @id/iv_device_online status icon by setting it gone with zero width/height while preserving signal, battery, and clock views. patches/res__layout__llauncher_item_cardline_album.xml.diff changes the album card preview tools:src from a guide-game-pad cover drawable to transparent; this affects design-time/preview placeholder ownership, not the runtime @id/iv_bg binding itself.

Routeable file ownership for this doc is therefore: game detail/video activity patches under patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__*.diff, the added GameVideoActivity$$ExternalSyntheticLambda0.smali under lite_resources/smali_classes5/com/xj/landscape/launcher/ui/gamedetail/, news and QR dialog patches named in this scope, mock-data media URL patches, and the four media/detail/search layout diffs listed above.

Coupling

  • If GameVideoActivity callers change intro-video routing, update both the intent extra contract in patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameVideoActivity.smali.diff and the delayed class route in lite_resources/smali_classes5/com/xj/landscape/launcher/ui/gamedetail/GameVideoActivity$$ExternalSyntheticLambda0.smali; the runnable always targets GameVideoActivity.class via ActivityUtils.k(...) and does not inspect the original activity instance.
  • If the player listener readiness path changes in patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameVideoActivity$mPlayerListener$1.smali.diff, verify GameVideoActivity.I1(...) is still called exactly when b2() should run; I1 both schedules the intro-video delayed route and continues into b2().
  • If the type extra contract for game detail routes changes, update patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameDetailActivity.smali.diff; omitted type now means "0", so downstream route branching may treat missing data as the default tab/mode instead of an invalid blank.
  • If llauncher_dialog_news_detail.xml changes @id/tv_source or removes it, keep patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__NewsDetailDialog$init$5.smali.diff aligned; the current smali tolerates a null binding field before setting source text.
  • If news links are expected to remain in-dialog, revisit patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__NewsDetailDialog.smali.diff; URI handling now starts an external ACTION_VIEW activity instead of scrolling/reusing @id/webView.
  • If QR login moves back to real WeChat services, update all three endpoint constants in patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__QrLoginHelper.smali.diff together; OAuth access token, stable token, and JS ticket retrieval are separate constants and a partial host swap leaves the login flow split across local and production services.
  • If local media hosting paths change, update patches/smali_classes5__com__xj__landscape__launcher__data__mock__MockUtilsKt.smali.diff alongside any image loader/proxy configuration; the mock URL string embeds full loopback URLs rather than deriving them from shared config.

Risks

  • patches/smali_classes5__com__xj__landscape__launcher__ui__gamedetail__GameVideoActivity.smali.diff and lite_resources/smali_classes5/com/xj/landscape/launcher/ui/gamedetail/GameVideoActivity$$ExternalSyntheticLambda0.smali: the delayed intro-video runnable is posted on the main looper for 0x4650 ms and there is no cancellation shown in the covered files. If the activity is recreated or the user leaves before the delay fires, ActivityUtils.k(GameVideoActivity.class) can still act on the activity class later.
  • patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__QrLoginHelper.smali.diff: all WeChat calls are downgraded to http://127.0.0.1. If this patch is shipped without a compatible local service, QR login cannot obtain OAuth tokens or tickets; if it is shipped where production WeChat login is expected, the helper never contacts api.weixin.qq.com.
  • patches/smali_classes5__com__xj__landscape__launcher__data__mock__MockUtilsKt.smali.diff: mock media URLs are embedded as one long literal. If only some hosts are rewritten, game detail and album media can mix local loopback assets with remote CDN assets, causing inconsistent offline behavior.
  • patches/smali_classes5__com__xj__landscape__launcher__ui__dialog__NewsDetailDialog.smali.diff: opening URI content through startActivity(ACTION_VIEW) depends on an external handler. If no browser/web handler is available in the launcher environment, news link activation can fail outside the dialog instead of rendering inside @id/webView.