This commit is contained in:
hyb1996
2017-11-03 19:56:50 +08:00
parent 36c6b38b17
commit ef02572f1d
16 changed files with 221 additions and 165 deletions

View File

@@ -53,6 +53,18 @@ public class Notification extends android.app.Notification {
}
}
@Override
public String toString() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
return "Notification{" +
"packageName='" + mPackageName + '\'' +
"title = " + getTitle() + '\'' +
"text='" + getText() + '\'' +
"} ";
}
return super.toString();
}
public static void clone(android.app.Notification from, android.app.Notification to) {
to.when = from.when;
to.icon = from.icon;