remove outdated comments; use File concatenation instead of separators

This commit is contained in:
Michael Pöhn 2018-01-26 17:56:06 +01:00
parent aab46c8ab2
commit c60c606dcf
2 changed files with 1 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public class Provisioner {
*/
public static void scanAndProcess(Context context) {
File provisionDir = new File(context.getExternalFilesDir(null).getAbsolutePath() + File.separator + NEW_PROVISIONS_DIR);
File provisionDir = new File(context.getExternalFilesDir(null).getAbsolutePath(), NEW_PROVISIONS_DIR);
if (!provisionDir.isDirectory()) {
Utils.debugLog(TAG, "Provisions dir does not exists: '" + provisionDir.getAbsolutePath() + "' moving on ...");
@ -70,7 +70,6 @@ public class Provisioner {
if (provision.getRepositoryProvision() != null) {
RepositoryProvision repo = provision.getRepositoryProvision();
// TODO uniqx: check if repo is already enable
Repo storedRepo = RepoProvider.Helper.findByAddress(context, repo.getUrl());
if (storedRepo != null) {
Utils.debugLog(TAG, "Provision contains a repo which is already added: '" + provision.getProvisonPath() + "' ignoring ...");

View File

@ -298,8 +298,6 @@ public class ManageReposActivity extends AppCompatActivity implements LoaderMana
case EXISTS_DISABLED:
case EXISTS_UPGRADABLE_TO_SIGNED:
case EXISTS_FINGERPRINT_MATCH:
// TODO uniqx:
//updateAndEnableExistingRepo(url, fp, username, password);
updateAndEnableExistingRepo(url, fp);
finishedAddingRepo();
break;