You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
NotificationManager: add support for icons
This commit is contained in:
@@ -51,6 +51,7 @@ public class Notification {
|
||||
String title;
|
||||
List<Action> actions = new ArrayList<Action>();
|
||||
PendingIntent intent;
|
||||
String iconPath;
|
||||
|
||||
public String toString() {
|
||||
return "Notification [" + title + ", " + text + ", " + actions + "]";
|
||||
@@ -65,7 +66,10 @@ public class Notification {
|
||||
|
||||
public Builder setWhen(long when) {return this;}
|
||||
|
||||
public Builder setSmallIcon(int icon, int level) {return this;}
|
||||
public Builder setSmallIcon(int icon, int level) {
|
||||
notification.iconPath = Context.this_application.getString(icon);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setContent(RemoteViews contentView) {return this;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user