shadow插件里PluginDefaultProxyActivity 主题是透明的,导致onStop没有调用

Aperta
#1,347 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, java
Ambito
mobile

Direzione di ricerca

Start by reading the manifest entry for PluginDefaultProxyActivity shown in the issue and tracing how Shadow uses this proxy activity and its theme. Investigate why the translucent theme prevents onStop from being called, then identify a behavior that preserves the needed proxy setup while allowing onStop to run. Done means the activity lifecycle callback works when the plugin is used.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

我们在onStop里有对应的业务处理,但是使用shadow变成插件之后,会导致Activity的onStop没有调用。

看了一下代码发现PluginDefaultProxyActivity 这个主题需要设置成透明到,所以导致onStop没有调用

    <activity
        android:name="com.tencent.shadow.sample.plugin.runtime.PluginDefaultProxyActivity"
        android:launchMode="standard"
        android:screenOrientation="portrait"
        android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
        android:hardwareAccelerated="true"
        android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
        android:multiprocess="true" />
Lingua principale
Java
Stelle
7.8k
Fork
1.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Tencent/Shadow

Tutte le issue di Tencent/Shadow

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.