diff --git a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 237baec695..d12ba36471 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -315,7 +315,7 @@ public class FileDisplayActivity extends HookActivity if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { // permission was granted - startSynchronization(); + refreshList(true); // toggle on is save since this is the only scenario this code gets accessed } else { // permission denied --> do nothing diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java index 838d64ef58..23f3fd1e86 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java @@ -681,8 +681,6 @@ public class PreviewMediaFragment extends FileFragment implements } private void prepareMediaController() { - mMultiView.setVisibility(View.GONE); - mPreviewContainer.setVisibility(View.VISIBLE); mMediaServiceBinder.registerMediaController(mMediaController); if (mMediaController != null) { mMediaController.setMediaPlayer(mMediaServiceBinder);