示例#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
   }
 }