title: Notification without "heads up"
body: <p>I am trying to create a notification that has a high priority (a chatting app) but my client requested that there will be no "heads up" view for it.</p>
  
  <p>I have tried creating an empty layout for a <code>RemoteViews</code> to set as the <code>Notification.headsUpContentView</code> but still nothing.</p>
  
  <p>Here is what I've tried:</p>
  
  <pre><code>    Intent target = new Intent(this, PushConsumedBroadcastReceiver.class);
      target.putExtra(PushConsumedBroadcastReceiver.PUSH_TYPE, PushConsumedBroadcastReceiver.PUSH_TYPE_REMINDER);
  
      PendingIntent pending = PendingIntent.getBroadcast(this, Constants.REQUEST_CODE_BASE, target, PendingIntent.FLAG_UPDATE_CURRENT);
      Notification notification = new Notification.Builder(this).setContentIntent(pending)
      .setContentTitle(item.getNotificationText())
      .setStyle(new BigTextStyle().bigText(item.getNotificationText()).setSummaryText("thepoosh looks good"))
      .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher))
      .setSmallIcon(R.drawable.g_icon_white)
      .setPriority(Notification.PRIORITY_MAX)
      .setTicker(item.getNotificationText())
      .build();
  
      if(VERSION.SDK_INT &gt;= VERSION_CODES.LOLLIPOP) {
          notification.headsUpContentView = new RemoteViews(getPackageName(), R.layout.empty_heads_up);
      }
      notification.sound = null;
      notification.ledARGB = 0;
      notification.vibrate = new long[0];
  
      NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      manager.notify(CODE_ONE_DAY_REMINDER, notification);
  </code></pre>
  
  <p><strong>empty_heads_up.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" /&gt;
  </code></pre>