You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add comments for NotificationCompat to support API < 16
This commit is contained in:
@@ -17,7 +17,7 @@ allprojects {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:support-v4:23.+'
|
||||
compile 'com.android.support:support-v4:23.+' // can be removed if minSdkVersion 16 and modify DownloadNotification.java & V14CustomNotification.java
|
||||
$$GRADLE_DEPENDENCIES$$
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ public class DownloadNotification implements IDownloaderClient {
|
||||
|
||||
private IDownloaderClient mClientProxy;
|
||||
final ICustomNotification mCustomNotification;
|
||||
// NotificationCompat.Builder is used to support API < 16. This can be changed to Notification.Builder if minimum API >= 16.
|
||||
private NotificationCompat.Builder mNotificationBuilder;
|
||||
private NotificationCompat.Builder mCurrentNotificationBuilder;
|
||||
private CharSequence mLabel;
|
||||
|
||||
@@ -60,6 +60,7 @@ public class V14CustomNotification implements DownloadNotification.ICustomNotifi
|
||||
|
||||
@Override
|
||||
public NotificationCompat.Builder updateNotification(Context c) {
|
||||
// NotificationCompat.Builder is used to support API < 16. This can be changed to Notification.Builder if minimum API >= 16.
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(c);
|
||||
builder.setContentTitle(mTitle);
|
||||
if (mTotalKB > 0 && -1 != mCurrentKB) {
|
||||
|
||||
Reference in New Issue
Block a user