mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Early merge PR #182
This commit is contained in:
parent
dff782d735
commit
20e6a42ec0
2 changed files with 6 additions and 2 deletions
|
@ -338,7 +338,7 @@ public class EventProcessor implements Runnable, RestApi.OnReceiveEventListener
|
|||
protected void onDeleteComplete(int token, Object cookie, int result) {
|
||||
super.onUpdateComplete(token, cookie, result);
|
||||
if (result == 1 && cookie != null) {
|
||||
// ToDo Log.v(TAG, "onItemFinished: onDeleteComplete: [ok] file=" + cookie.toString() + ", token=" + Integer.toString(token));
|
||||
// Log.v(TAG, "onItemFinished: onDeleteComplete: [ok] file=" + cookie.toString() + ", token=" + Integer.toString(token));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -724,7 +724,11 @@ public class SyncthingService extends Service {
|
|||
* Called to notify listeners of an API change.
|
||||
*/
|
||||
private void onServiceStateChange(State newState) {
|
||||
Log.i(TAG, "onServiceStateChange: from " + mCurrentState + " to " + newState);
|
||||
if (newState == mCurrentState) {
|
||||
Log.d(TAG, "onServiceStateChange: Called with unchanged state " + newState);
|
||||
} else {
|
||||
Log.i(TAG, "onServiceStateChange: from " + mCurrentState + " to " + newState);
|
||||
}
|
||||
mCurrentState = newState;
|
||||
mHandler.post(() -> {
|
||||
mNotificationHandler.updatePersistentNotification(this);
|
||||
|
|
Loading…
Reference in a new issue