title: While downloading files using firebase storage -The application may be doing too much work on its main thread
body: <p>I am using <code>NotificationCompat.Builder</code> while uploading/downloading files in Firebase. While uploading it is normal. However, when downloading the system lags until download is completed and log cat shows </p>
  
  <blockquote>
    <p>The application may be doing too much work on its main thread</p>
  </blockquote>
  
  <p>This is code of <code>addOnprogresslistner()</code></p>
  
  <pre><code>public void onProgress(FileDownloadTask.TaskSnapshot taskSnapshot) {
      double fprogress = (100.0 * taskSnapshot.getBytesTransferred()) / taskSnapshot.getTotalByteCount();
      String progress = String.format("%.2f", fprogress);
      NotificationCompat.Builder mBuilder = 
          new NotificationCompat.Builder(getApplicationContext())
          .setSmallIcon(android.R.drawable.stat_sys_download)
          .setContentTitle("Downloading " + model.getName())
          .setContentText(" " + progress + "% completed" );
  
      NotificationManager mNotificationManager = 
         (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
  
      mNotificationManager.notify(mId, mBuilder.build());
  }
  </code></pre>
  
  <p>If I remove the <code>NotificationCompat.Builder</code>, it works just fine.</p>
  
  <p>Any workaround?</p>