Add pushModify to IEmailService.

This call lets the service know that the push settings for an
account have changed.

Change-Id: Iea155f145711966e0959d3ccb337fe8b1f40b952
(cherry picked from commit 45d80e843e2852dad534de08c22b57a455406ba9)
diff --git a/src/com/android/exchange/ExchangeService.java b/src/com/android/exchange/ExchangeService.java
index f6d97e5..85ea33f 100644
--- a/src/com/android/exchange/ExchangeService.java
+++ b/src/com/android/exchange/ExchangeService.java
@@ -179,6 +179,10 @@
         @Override
         public void sendMail(long accountId) throws RemoteException {
         }
+
+        @Override
+        public void pushModify(long accountId) throws RemoteException {
+        }
     };
 
     /**
diff --git a/src/com/android/exchange/service/EasService.java b/src/com/android/exchange/service/EasService.java
index 5b772b5..dd8c8f0 100644
--- a/src/com/android/exchange/service/EasService.java
+++ b/src/com/android/exchange/service/EasService.java
@@ -78,6 +78,17 @@
         }
 
         @Override
+        public void pushModify(final long accountId) {
+            LogUtils.d(TAG, "IEmailService.pushModify: %d", accountId);
+            final Account account = Account.restoreAccountWithId(EasService.this, accountId);
+            if (pingNeededForAccount(account)) {
+                mSynchronizer.pushModify(accountId);
+            } else {
+                mSynchronizer.pushStop(accountId);
+            }
+        }
+
+        @Override
         public Bundle validate(final HostAuth hostAuth) {
             final EasFolderSync operation = new EasFolderSync(EasService.this, hostAuth);
             doOperation(operation, null, "IEmailService.validate");
diff --git a/src/com/android/exchange/service/EmailSyncAdapterService.java b/src/com/android/exchange/service/EmailSyncAdapterService.java
index 96eb1a6..7b59985 100644
--- a/src/com/android/exchange/service/EmailSyncAdapterService.java
+++ b/src/com/android/exchange/service/EmailSyncAdapterService.java
@@ -465,6 +465,9 @@
 
         @Override
         public void sendMail(final long accountId) {}
+
+        @Override
+        public void pushModify(final long accountId) {}
     };
 
     public EmailSyncAdapterService() {