Hide notifications when opening the navigatinon drawer. Open selected notification item before hiding the list.

This commit is contained in:
Akinwale Ariwodola 2020-07-24 06:20:35 +01:00
parent 185526eb29
commit 5ed0b5c315

View file

@ -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();
}
}
});