mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-22 06:38:16 +01:00
Fix volume buttons in photo viewer
This commit is contained in:
parent
8ee4b7992a
commit
6f74315b7f
2
mastodon/.gitignore
vendored
2
mastodon/.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
/build
|
||||
/release
|
||||
/debug
|
||||
*.apk
|
||||
output-metadata.json
|
||||
|
@ -62,10 +62,13 @@ public class PhotoViewer implements ZoomPanView.Listener{
|
||||
windowView=new FrameLayout(activity){
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event){
|
||||
if(event.getAction()==KeyEvent.ACTION_DOWN && event.getKeyCode()==KeyEvent.KEYCODE_BACK){
|
||||
onStartSwipeToDismissTransition(0f);
|
||||
if(event.getKeyCode()==KeyEvent.KEYCODE_BACK){
|
||||
if(event.getAction()==KeyEvent.ACTION_DOWN){
|
||||
onStartSwipeToDismissTransition(0f);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user