mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 00:01: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) {
|
protected void onDeleteComplete(int token, Object cookie, int result) {
|
||||||
super.onUpdateComplete(token, cookie, result);
|
super.onUpdateComplete(token, cookie, result);
|
||||||
if (result == 1 && cookie != null) {
|
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.
|
* Called to notify listeners of an API change.
|
||||||
*/
|
*/
|
||||||
private void onServiceStateChange(State newState) {
|
private void onServiceStateChange(State newState) {
|
||||||
|
if (newState == mCurrentState) {
|
||||||
|
Log.d(TAG, "onServiceStateChange: Called with unchanged state " + newState);
|
||||||
|
} else {
|
||||||
Log.i(TAG, "onServiceStateChange: from " + mCurrentState + " to " + newState);
|
Log.i(TAG, "onServiceStateChange: from " + mCurrentState + " to " + newState);
|
||||||
|
}
|
||||||
mCurrentState = newState;
|
mCurrentState = newState;
|
||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
mNotificationHandler.updatePersistentNotification(this);
|
mNotificationHandler.updatePersistentNotification(this);
|
||||||
|
|
Loading…
Reference in a new issue