예제 #1
0
 @Override
 public void stopSwapping() {
   if (FDroidApp.isLocalRepoServiceRunning()) {
     if (shutdownLocalRepoTimer != null) {
       shutdownLocalRepoTimer.cancel();
     }
     FDroidApp.stopLocalRepoService(SwapActivity.this);
   }
   finish();
 }
예제 #2
0
 private void ensureLocalRepoRunning() {
   if (!FDroidApp.isLocalRepoServiceRunning()) {
     FDroidApp.startLocalRepoService(this);
     initLocalRepoTimer(900000); // 15 mins
   }
 }