mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Check if timer is null.
This commit is contained in:
parent
2bac0d9504
commit
1703194b02
1 changed files with 4 additions and 2 deletions
|
@ -97,9 +97,11 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDrawerClosed() {
|
public void onDrawerClosed() {
|
||||||
|
if (mTimer != null) {
|
||||||
mTimer.cancel();
|
mTimer.cancel();
|
||||||
mTimer = null;
|
mTimer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
|
Loading…
Reference in a new issue