mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Use LargeIcon to solve notification missing icon issue
This commit is contained in:
parent
7eb5b2e954
commit
904f687b1a
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ import android.content.DialogInterface;
|
|||
import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemClock;
|
||||
|
@ -384,6 +385,8 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
builder.setContentTitle(getAppName());
|
||||
builder.setContentText(content);
|
||||
builder.setSmallIcon(R.mipmap.ic_launcher);
|
||||
builder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(),
|
||||
R.mipmap.ic_launcher));
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue