Always fetch network state on process onStart

This commit is contained in:
topjohnwu
2023-03-19 04:11:59 -07:00
parent af054e4e31
commit 0e851cdcf8
3 changed files with 39 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
package androidx.lifecycle;
import android.content.Context;
import androidx.annotation.NonNull;
public class ProcessLifecycleAccessor {
public static void init(@NonNull Context context) {
LifecycleDispatcher.init(context);
ProcessLifecycleOwner.init(context);
}
}