1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00

Early merge PR #182

This commit is contained in:
Catfriend1 2019-03-09 16:58:17 +01:00
parent dff782d735
commit 20e6a42ec0
2 changed files with 6 additions and 2 deletions

View file

@ -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));
} }
} }
} }

View file

@ -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);