Skip to content

Commit

Permalink
Fix notification compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kranz committed Nov 20, 2015
1 parent f739502 commit bc565e2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.IBinder;
import android.text.LoginFilter;
import android.support.v4.app.NotificationCompat;
import android.util.Log;

import java.util.ArrayList;
import java.util.Properties;

import javax.mail.Message;
Expand Down Expand Up @@ -69,7 +68,7 @@ protected void onPreExecute(){
String notificationText = mContext.getResources().getString(R.string.service_notification_ticker);
String notificationLabel = mContext.getResources().getString(R.string.app_name);
mNotificationId = R.string.app_name + mNotificationOffset++;
notification = new Notification.Builder(mContext)
notification = new NotificationCompat.Builder(mContext)
.setSmallIcon(R.mipmap.ic_launcher)
.setTicker(notificationText)
.setWhen(System.currentTimeMillis())
Expand Down

0 comments on commit bc565e2

Please sign in to comment.