Пример #1
0
 @SuppressWarnings("unused")
 public void onEventMainThread(SyncStatusRequestEvent event) {
   SyncStatusResponseEvent status = SyncStatusResponseEvent.IDLE;
   if (sSyncAdapter != null) {
     status = sSyncAdapter.getStatus();
   }
   if (status == null) status = SyncStatusResponseEvent.UNKNOWN;
   postStatus(this, status);
 }
Пример #2
0
 @Override
 public IBinder onBind(Intent intent) {
   return sSyncAdapter.getSyncAdapterBinder();
 }