Skip to content

Commit

Permalink
deprecation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
segler-alex committed Jul 27, 2016
1 parent d34d9b6 commit 0d7cdd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.os.PowerManager;
import android.os.RemoteException;
import android.support.v4.app.NotificationCompat;
import android.support.v4.content.res.ResourcesCompat;
import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;
Expand Down Expand Up @@ -288,7 +289,7 @@ public void SendMessage(String theTitle, String theMessage, String theTicker) {
.setOngoing(true)
.setUsesChronometer(true)
.setSmallIcon(R.drawable.ic_play_arrow_24dp)
.setLargeIcon((((BitmapDrawable) getResources().getDrawable(R.drawable.ic_launcher)).getBitmap()))
.setLargeIcon((((BitmapDrawable) ResourcesCompat.getDrawable(getResources(), R.drawable.ic_launcher, null)).getBitmap()))
.addAction(R.drawable.ic_stop_24dp,"Stop",pendingIntentStop)
.build();

Expand Down

0 comments on commit 0d7cdd9

Please sign in to comment.