Merge pull request #3362 from jmakovicka/npe-fix

Fix NPE
This commit is contained in:
Hardy 2016-12-25 09:11:23 +01:00 committed by GitHub
commit efad82deb3

View file

@ -235,7 +235,7 @@ public class NavigationNotification extends OsmandNotification {
int smallIconViewId = app.getResources().getIdentifier("right_icon", "id", android.R.class.getPackage().getName()); int smallIconViewId = app.getResources().getIdentifier("right_icon", "id", android.R.class.getPackage().getName());
if (smallIconViewId != 0) { if (smallIconViewId != 0) {
if (notification.contentIntent != null) if (notification.contentView != null)
notification.contentView.setViewVisibility(smallIconViewId, View.INVISIBLE); notification.contentView.setViewVisibility(smallIconViewId, View.INVISIBLE);
if (notification.headsUpContentView != null) if (notification.headsUpContentView != null)