@Override public void stopSwapping() { if (FDroidApp.isLocalRepoServiceRunning()) { if (shutdownLocalRepoTimer != null) { shutdownLocalRepoTimer.cancel(); } FDroidApp.stopLocalRepoService(SwapActivity.this); } finish(); }