Simplification

This commit is contained in:
M66B
2020-01-02 20:05:10 +01:00
parent 8036319e6f
commit a22fcc9064
3 changed files with 10 additions and 33 deletions

View File

@@ -917,15 +917,8 @@ public class FragmentCompose extends FragmentBase {
}
private void check() {
Activity activity = getActivity();
if (activity != null)
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
checkInternet();
}
});
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
checkInternet();
}
};