title: Why isn't the public version of my notification displayed on the lock screen?
body: <p>I'm using v7 of NotificationCompat to build a notification. I want it to have a public version with less information for the lock screen, and a private version with more information for the notifications list available when the phone is unlocked. The instructions in the android developer documentation are pretty straight forward... But they're not working for me. I get the private version all the time, even on the lock screen. </p>
  
  <p>Can someone please tell me what I'm doing wrong?</p>
  
  <p>I'm running android version 6.0.1 on my Samsung Galaxy S6, and for the private version of my notification I'm setting a custom view via the RemoteViews class.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>NotificationCompat.Builder publicNotificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(context)
                  .setContentTitle(expense.name)
                  .setContentText(expense.amount)
                  .setAutoCancel(true)
                  .setSmallIcon(R.drawable.wally_icon)
                  .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));
  NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(context)
                  .setAutoCancel(true)
                  .setSmallIcon(R.drawable.wally_icon)
                  .setContent(remoteViews)
                  .setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
                  .setPublicVersion(publicNotificationBuilder.build())
                  .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));
  notificationManager.notify((int)expense.id, notificationBuilder.build());
  </code></pre>