mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add a landscape default background, toggle on orientation change
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user