Merge pull request #826 from nextcloud/fix_bug_firstlogin

Fix bug firstlogin
This commit is contained in:
Mario Đanić 2017-04-19 14:39:21 +02:00 committed by GitHub
commit 1a18de8cc4
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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);