title: Notification contentView and bigContentView are null in Android 7
body: <p>Part of my application consists in a custom lockscreen which needs to show notifications as normal android lockscreen does.</p>
  
  <p>Everything works fine until Android 6, I used a NotificationListenerService to retrieve notification contentView and bigContentView (RemoteViews). I use them on my custom RecyclerView adapter to create a notification list with the same notifications listed by the service:</p>
  
  <pre><code>//this is called by NotificationListenerService
  @Override
  public void onNotificationPosted(StatusBarNotification sbn) {
      AddNotification(sbn);
  }
  </code></pre>
  
  <p>then use the StatusBarNotification to retrieve contentView and bigContentView and apply them in my custom recycleview list views:</p>
  
  <pre><code>/**
  * Add notification into recycleview
  * @param sbn notification to add
  */
  private void AddNotification(StatusBarNotification sbn)
  {
      Notification notification = sbn.getNotification();
  
      if(notification==null) return;
  
      if(notification.bigContentView!=null) {
          //apply bigContentView to my recycleview list notification view
          myListView.notificationview = notification.bigContentView.apply(myContext(), myNotificationLayout);
      }
      else if(notification.contentView!=null) {
          //apply contentView to my recycleview list notification view
          myListView.notificationview = notification.contentView.apply(myContext(), myNotificationLayout);
      }
  
      //notify recycleview of a new item inserted
      notifyItemInserted(0);
  }
  </code></pre>
  
  <p>This is no longer possible with Android 7 because starting with Android N (as stated in Android documentation), <a href="https://developer.android.com/reference/android/app/Notification.html#contentView" rel="nofollow noreferrer">contentView</a> and bigContentView could be null (actually they are).
  those were extremely useful beacuse you could replicate notification views which could also contain some complex action controls (such as media player notifications, with play/pause/stop controls for example):</p>
  
  <p><a href="https://i.stack.imgur.com/TCz7l.jpg" rel="nofollow noreferrer">media player notification</a></p>
  
  <p>Is it possible in Android 7 and above to create a view with the same content of the original notification?</p>
  
  <p>How do I replicate the RemoteView behaviour? Is it possible to retrieve all the notifications information (graphic, text, icons, intents, etc)?</p>