mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Merge pull request #1846 from nextcloud/resizedImages_walledGarden
Fix walledGarden with resized images
This commit is contained in:
commit
34143f4e0f
3 changed files with 16 additions and 11 deletions
|
@ -352,11 +352,14 @@ public class ThumbnailsCacheManager {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
new Thread(() -> {
|
||||
if (ConnectivityUtils.isInternetWalled(MainApp.getAppContext())) {
|
||||
previewImageFragment.setNoConnectionErrorMessage();
|
||||
} else {
|
||||
previewImageFragment.setErrorPreviewMessage();
|
||||
}
|
||||
}).start();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
|||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
Log_OC.i(TAG, "onCreateView() start");
|
||||
View v = super.onCreateView(inflater, container, savedInstanceState);
|
||||
bottomNavigationView = (BottomNavigationView) v.findViewById(R.id.bottom_navigation_view);
|
||||
bottomNavigationView = v.findViewById(R.id.bottom_navigation_view);
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
currentSearchType = Parcels.unwrap(savedInstanceState.getParcelable(KEY_CURRENT_SEARCH_TYPE));
|
||||
|
@ -901,9 +901,9 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
|||
type = VirtualFolderType.NONE;
|
||||
break;
|
||||
}
|
||||
((FileDisplayActivity) mContainerActivity).startImagePreview(file, type, false);
|
||||
((FileDisplayActivity) mContainerActivity).startImagePreview(file, type, !file.isDown());
|
||||
} else {
|
||||
((FileDisplayActivity) mContainerActivity).startImagePreview(file, false);
|
||||
((FileDisplayActivity) mContainerActivity).startImagePreview(file, !file.isDown());
|
||||
}
|
||||
} else if (file.isDown() && MimeTypeUtil.isVCard(file)) {
|
||||
((FileDisplayActivity) mContainerActivity).startContactListFragment(file);
|
||||
|
|
|
@ -54,8 +54,8 @@ import com.owncloud.android.ui.activity.FileActivity;
|
|||
import com.owncloud.android.ui.activity.ShareActivity;
|
||||
import com.owncloud.android.ui.events.FavoriteEvent;
|
||||
import com.owncloud.android.ui.events.SyncEventFinished;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
import com.owncloud.android.utils.DisplayUtils;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
|
@ -168,9 +168,11 @@ public class FileOperationsHelper {
|
|||
i.putExtra(ConflictsResolveActivity.EXTRA_ACCOUNT, account);
|
||||
mFileActivity.startActivity(i);
|
||||
} else {
|
||||
if (file.isDown()) {
|
||||
FileStorageUtils.checkIfFileFinishedSaving(file);
|
||||
EventBus.getDefault().post(new SyncEventFinished(intent));
|
||||
}
|
||||
}
|
||||
mFileActivity.dismissLoadingDialog();
|
||||
}
|
||||
}).start();
|
||||
|
|
Loading…
Reference in a new issue