From 46986dbc1fd573f924b95102f7a62d10b635df75 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 29 Dec 2020 20:08:23 -0800 Subject: Closes #1037: Better fix for fullscreen issue that doesn't break normal viewing --- .../daneren2005/dsub/activity/SubsonicActivity.java | 2 ++ .../res/layout/abstract_fullscreen_activity.xml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 app/src/main/res/layout/abstract_fullscreen_activity.xml (limited to 'app') diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index d475be7b..eabc1a07 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -307,6 +307,8 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte public void setContentView(int viewId) { if(isTv()) { super.setContentView(R.layout.static_drawer_activity); + } else if(Util.getPreferences(this).getBoolean(Constants.PREFERENCES_KEY_FULL_SCREEN, false)) { + super.setContentView(R.layout.abstract_fullscreen_activity); } else { super.setContentView(R.layout.abstract_activity); } diff --git a/app/src/main/res/layout/abstract_fullscreen_activity.xml b/app/src/main/res/layout/abstract_fullscreen_activity.xml new file mode 100644 index 00000000..7ca9b936 --- /dev/null +++ b/app/src/main/res/layout/abstract_fullscreen_activity.xml @@ -0,0 +1,21 @@ + + + + + + + + + -- cgit v1.2.3