add a landscape default background, toggle on orientation change

This commit is contained in:
B. Petersen
2020-06-17 14:44:56 +02:00
parent b268981a84
commit 1a620d6d8f
2 changed files with 6 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

@@ -332,6 +332,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
if (emojiDrawerStub.resolved() && container.getCurrentInput() == emojiDrawerStub.get()) {
container.hideAttachedInput(true);
}
initializeBackground();
}
@Override
@@ -841,6 +843,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
quickCameraToggle.setEnabled(false);
}
initializeBackground();
}
private void initializeBackground() {
String backgroundImagePath = Prefs.getBackgroundImagePath(this);
if(!backgroundImagePath.isEmpty()) {
Drawable image = Drawable.createFromPath(backgroundImagePath);