Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Media Gallery UI (Landscape Mode)

Open xashyar opened this issue 7 years ago • 6 comments

  • [x] I have searched open and closed issues for duplicates
  • [x] I am submitting a bug report for existing functionality that does not work as intended
  • [x] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
  • [x] This isn't a feature request or a discussion topic

Bug description

Actual result: The Header Toolbar Obfuscates the Full Screen View. Expected result: Header Toolbar Should Fade Away with the Navigation Menu.

Screenshots

signal-attachment-2019-03-13-001821

xashyar avatar Mar 12 '19 20:03 xashyar

Hey, can I work on this?

jatinkumarg avatar Apr 10 '19 23:04 jatinkumarg

Hey, can I work on this?

👍

xashyar avatar Apr 10 '19 23:04 xashyar

@Xashyar Just to be sure, do you want me to completely remove the Header Toolbar?

jatinkumarg avatar Apr 10 '19 23:04 jatinkumarg

@jatinkumarg No, just that it should fade away by tapping on the underneath media (photo, video, etc.).

and I also suggest contacting @greyson-signal since PRs rarely get merged.

xashyar avatar Apr 11 '19 11:04 xashyar

@danmoop Hi Danill, sorry for pinging you along, I thought this issue might be similar to #8915, would you mind taking a look as well?

Thanks in Advance.

xashyar avatar Jul 11 '19 21:07 xashyar

@Xashyar Hello. Sure I checked the issue #8682. I think there is a solution to this problem, it will look like this:

@Override
  public void onConfigurationChanged(Configuration newConfig) {
    if(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
      toolbar.hide(); // when landscape mode is on -> hide toolbar
    } else {
      toolbar.show(); // when we are back to portrait -> show toolbar
    }
  }

And the file that handles menu buttons is this one The problem is that I can't access toolbar. I can access buttons (save, forward, etc.) but this box I cannot. It wants to hide me :( There are caption box, details box (more images that you can preview), caption text and whatever except for toolbar.

UPD: getSupportActionBar() was the thing I needed. Works fine now.

danmoop avatar Jul 12 '19 14:07 danmoop