[Android] Expand ActionBar on screen rotation

Geoffrey Métais git at videolan.org
Mon Nov 14 18:12:44 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 14 18:12:17 2016 +0100| [e72d5ed0188f5fd0d950a53a7856e15edb58c17f] | committer: Geoffrey Métais

Expand ActionBar on screen rotation

> https://code.videolan.org/videolan/vlc-android/commit/e72d5ed0188f5fd0d950a53a7856e15edb58c17f
---

 vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index eb7aec0..4dd49a6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -106,12 +106,13 @@ public class AudioPlayerContainerActivity extends AppCompatActivity implements P
         super.onCreate(savedInstanceState);
     }
 
-    protected void initAudioPlayerContainerActivity(){
+    protected void initAudioPlayerContainerActivity() {
 
         mToolbar = (Toolbar) findViewById(R.id.main_toolbar);
         setSupportActionBar(mToolbar);
         mActionBar = getSupportActionBar();
         mAppBarLayout = (AppBarLayout) findViewById(R.id.appbar);
+        mAppBarLayout.setExpanded(true);
 
         mAudioPlayer = (AudioPlayer) getSupportFragmentManager().findFragmentById(R.id.audio_player);
         mAudioPlayer.setUserVisibleHint(false);



More information about the Android mailing list