|
@@ -57,9 +57,11 @@
|
|
|
switch ([[change objectForKey:NSKeyValueChangeNewKey] intValue]) {
|
|
switch ([[change objectForKey:NSKeyValueChangeNewKey] intValue]) {
|
|
|
case QueueStatusFinish:
|
|
case QueueStatusFinish:
|
|
|
msg=@"Upload is complete.";
|
|
msg=@"Upload is complete.";
|
|
|
|
|
+ [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
|
|
|
break;
|
|
break;
|
|
|
case QueueStatusAdd:
|
|
case QueueStatusAdd:
|
|
|
msg=@"New tasks added.";
|
|
msg=@"New tasks added.";
|
|
|
|
|
+ [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case QueueStatusFinishWithError:
|
|
case QueueStatusFinishWithError:
|
|
@@ -70,6 +72,8 @@
|
|
|
msg=@"Upload is complete.";
|
|
msg=@"Upload is complete.";
|
|
|
else
|
|
else
|
|
|
msg=@"Some of the tasks have not been successfully uploaded.\n Check upload list for detail.";
|
|
msg=@"Some of the tasks have not been successfully uploaded.\n Check upload list for detail.";
|
|
|
|
|
+
|
|
|
|
|
+ [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
default:
|
|
default:
|