Prevent crash

pull/206/head
M66B 3 years ago
parent 5a629dc17b
commit ba59223ae9

@ -406,14 +406,10 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
};
private void showConnectionType() {
final Context context = getContext();
if (context == null) {
tvNetworkMetered.setVisibility(View.GONE);
tvNetworkRoaming.setVisibility(View.GONE);
cardDebug.setVisibility(View.GONE);
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
}
final Context context = getContext();
final ConnectionHelper.NetworkState networkState = ConnectionHelper.getNetworkState(context);
final StringBuilder sb = new StringBuilder();

Loading…
Cancel
Save