From f131584b0d8eadddf8840135f8d5dea064a11b96 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 2 Apr 2018 23:53:12 +0200 Subject: show new fab in ShowFullscreenMessageActivity --- src/main/AndroidManifest.xml | 2 +- .../ui/ShowFullscreenMessageActivity.java | 42 +++++++++++++------ .../res/layout/activity_fullscreen_message.xml | 49 +++++++++++----------- src/main/res/values/themes.xml | 4 -- 4 files changed, 54 insertions(+), 43 deletions(-) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 92ab4706c..b194e4b7c 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -230,7 +230,7 @@ { + mVideo.reset(); + shareWith(mFile); }); } @@ -104,6 +110,11 @@ public class ShowFullscreenMessageActivity extends AppCompatActivity { return null; } + @Override + protected void refreshUiReal() { + + } + @Override protected void onStart() { super.onStart(); @@ -227,7 +238,7 @@ public class ShowFullscreenMessageActivity extends AppCompatActivity { } @Override - protected void onResume() { + public void onResume() { WindowManager.LayoutParams layout = getWindow().getAttributes(); if (useMaxBrightness()) { layout.screenBrightness = 1; @@ -239,7 +250,7 @@ public class ShowFullscreenMessageActivity extends AppCompatActivity { } @Override - protected void onPause() { + public void onPause() { mVideo.reset(); WindowManager.LayoutParams layout = getWindow().getAttributes(); if (useMaxBrightness()) { @@ -264,6 +275,11 @@ public class ShowFullscreenMessageActivity extends AppCompatActivity { super.onStop(); } + @Override + void onBackendConnected() { + + } + public boolean useMaxBrightness() { return getPreferences().getBoolean("use_max_brightness", getResources().getBoolean(R.bool.use_max_brightness)); } diff --git a/src/main/res/layout/activity_fullscreen_message.xml b/src/main/res/layout/activity_fullscreen_message.xml index bc6eeb850..c1a1bc619 100644 --- a/src/main/res/layout/activity_fullscreen_message.xml +++ b/src/main/res/layout/activity_fullscreen_message.xml @@ -2,37 +2,36 @@ - - - - + android:background="@android:color/black" + android:orientation="vertical"> + android:layout_alignParentTop="true"> + + + + - + \ No newline at end of file diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index 8a7113b16..eb2038a69 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -78,10 +78,6 @@ 18sp - -