mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 14:21:16 +00:00
Fix crash in case DrawerFragment is opened early (fixes #629).
This commit is contained in:
parent
bb17c53d4c
commit
cc74cd1fcf
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
* Invokes status callbacks.
|
* Invokes status callbacks.
|
||||||
*/
|
*/
|
||||||
private void updateGui() {
|
private void updateGui() {
|
||||||
if (mActivity.getApi() == null || getActivity().isFinishing())
|
if (mActivity.getApi() == null || getActivity() == null || getActivity().isFinishing())
|
||||||
return;
|
return;
|
||||||
mActivity.getApi().getSystemInfo(this);
|
mActivity.getApi().getSystemInfo(this);
|
||||||
mActivity.getApi().getConnections(this);
|
mActivity.getApi().getConnections(this);
|
||||||
|
|
Loading…
Reference in a new issue