Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/java/it/reyboz/bustorino/data/DBUpdateWorker.java
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | public Result doWork() { | ||||
long currentTime = System.currentTimeMillis()/1000; | long currentTime = System.currentTimeMillis()/1000; | ||||
//showNotification(notificationManager, notification_ID); | //showNotification(notificationManager, notification_ID); | ||||
final NotificationCompat.Builder builder = new NotificationCompat.Builder(con, | final NotificationCompat.Builder builder = new NotificationCompat.Builder(con, | ||||
Notifications.DB_UPDATE_CHANNELS_ID) | Notifications.DB_UPDATE_CHANNELS_ID) | ||||
.setContentTitle(con.getString(R.string.database_update_msg_notif)) | .setContentTitle(con.getString(R.string.database_update_msg_notif)) | ||||
.setProgress(0,0,true) | .setProgress(0,0,true) | ||||
.setPriority(NotificationCompat.PRIORITY_LOW); | .setPriority(NotificationCompat.PRIORITY_LOW); | ||||
builder.setSmallIcon(R.drawable.ic_bus_orange); | builder.setSmallIcon(R.drawable.ic_bus_stilized); | ||||
notificationManager.notify(notification_ID,builder.build()); | notificationManager.notify(notification_ID,builder.build()); | ||||
Log.d(DEBUG_TAG, "Have previous version: "+current_DB_version +" and new version "+new_DB_version); | Log.d(DEBUG_TAG, "Have previous version: "+current_DB_version +" and new version "+new_DB_version); | ||||
Log.d(DEBUG_TAG, "Update compulsory: "+isUpdateCompulsory); | Log.d(DEBUG_TAG, "Update compulsory: "+isUpdateCompulsory); | ||||
/* | /* | ||||
SKIP CHECK (Reason: The Old API might fail at any moment) | SKIP CHECK (Reason: The Old API might fail at any moment) | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register