Hide notifications when opening the navigatinon drawer. Open selected notification item before hiding the list.
This commit is contained in:
parent
185526eb29
commit
5ed0b5c315
1 changed files with 2 additions and 1 deletions
|
@ -480,6 +480,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
public void onDrawerSlide(View drawerView, float slideOffset) {
|
||||
if (slideOffset != 0) {
|
||||
clearWunderbarFocus(findViewById(R.id.wunderbar));
|
||||
hideNotifications();
|
||||
}
|
||||
super.onDrawerSlide(drawerView, slideOffset);
|
||||
}
|
||||
|
@ -3169,12 +3170,12 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
|||
public void onNotificationClicked(LbryNotification notification) {
|
||||
LbryUri target = LbryUri.tryParse(notification.getTargetUrl());
|
||||
if (target != null) {
|
||||
hideNotifications();
|
||||
if (target.isChannel()) {
|
||||
openChannelUrl(target.toString());
|
||||
} else {
|
||||
openFileUrl(target.toString());
|
||||
}
|
||||
hideNotifications();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue