AccountManagerService.java 559 B

1234567891011121314151617181920212223242526
  1. package com.owncloud.android.services;
  2. import android.app.Service;
  3. import android.content.Intent;
  4. import android.os.IBinder;
  5. import com.nextcloud.android.sso.InputStreamBinder;
  6. public class AccountManagerService extends Service {
  7. private InputStreamBinder mBinder;
  8. @Override
  9. public IBinder onBind(Intent intent) {
  10. if(mBinder == null) {
  11. mBinder = new InputStreamBinder(this);
  12. }
  13. return mBinder;
  14. }
  15. @Override
  16. public boolean onUnbind(Intent intent) {
  17. return super.onUnbind(intent);
  18. }
  19. }