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