mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-11 04:25:53 +00:00
This commit is contained in:
parent
ea8621cfc3
commit
d119517614
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ public class DeviceListFragment extends ListFragment implements SyncthingService
|
||||||
*/
|
*/
|
||||||
private void updateList() {
|
private void updateList() {
|
||||||
SyncthingActivity activity = (SyncthingActivity) getActivity();
|
SyncthingActivity activity = (SyncthingActivity) getActivity();
|
||||||
if (activity.getApi() == null || getView() == null || activity.isFinishing())
|
if (activity.getApi() == null || !activity.getApi().isConfigLoaded() || getView() == null || activity.isFinishing())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mAdapter == null) {
|
if (mAdapter == null) {
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class FolderListFragment extends ListFragment implements SyncthingService
|
||||||
*/
|
*/
|
||||||
private void updateList() {
|
private void updateList() {
|
||||||
SyncthingActivity activity = (SyncthingActivity) getActivity();
|
SyncthingActivity activity = (SyncthingActivity) getActivity();
|
||||||
if (activity.getApi() == null || getView() == null || activity.isFinishing())
|
if (activity.getApi() == null || !activity.getApi().isConfigLoaded() || getView() == null || activity.isFinishing())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mAdapter == null) {
|
if (mAdapter == null) {
|
||||||
|
|
Loading…
Reference in a new issue