mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Fixed home button in action bar for PreviewImageActvitiy when navigation drawer is shown
This commit is contained in:
parent
a45c0f57f9
commit
88ded5540a
1 changed files with 6 additions and 1 deletions
|
@ -31,6 +31,7 @@ import android.os.Bundle;
|
|||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Message;
|
||||
import android.support.v4.view.GravityCompat;
|
||||
import android.support.v4.view.ViewPager;
|
||||
import android.support.v4.widget.DrawerLayout;
|
||||
import android.support.v7.app.ActionBar;
|
||||
|
@ -324,7 +325,11 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
|
||||
switch(item.getItemId()){
|
||||
case android.R.id.home:
|
||||
if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) {
|
||||
mDrawerLayout.closeDrawer(GravityCompat.START);
|
||||
} else {
|
||||
backToDisplayActivity();
|
||||
}
|
||||
returnValue = true;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue