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