Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Commit

Permalink
Fix locales not being reloaded after synchronizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jan 18, 2017
1 parent bd2fafd commit 82cf1ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ protected void onCreate(Bundle savedInstanceState) {
// Retrieve the owner and repository name
mRepo = RepoHandler.fromBundle(this, getIntent().getBundleExtra(EXTRA_REPO));
setTitle(mRepo.toString());
loadResources();
}

private void loadResources() {
if (mRepo.hasDefaultLocale()) {
mDefaultResources = mRepo.loadDefaultResources();
loadLocalesSpinner();
Expand Down Expand Up @@ -307,8 +310,7 @@ public void onProgressFinished(String description, boolean status) {
if (description != null)
Toast.makeText(getApplicationContext(), description, Toast.LENGTH_SHORT).show();

mDefaultResources = mRepo.loadDefaultResources();
loadLocalesSpinner();
loadResources();
}
}, keepChanges);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ private void doCopyResources(final File clonedDir, final ArrayList<File> foundRe
}

GitWrapper.deleteRepo(clonedDir); // Clean resources
loadLocales(); // Reload the locales
}

//endregion
Expand Down

0 comments on commit 82cf1ea

Please sign in to comment.