forked from GitHub/gf-core
synchronize the target languages in the main activity with the one in the lexicon activity
This commit is contained in:
@@ -43,7 +43,14 @@ public class LexicalEntryActivity extends ListActivity {
|
||||
|
||||
updateTranslations();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
mShowLanguageView.setSelectedLanguage(mTranslator.getTargetLanguage());
|
||||
}
|
||||
|
||||
private void updateTranslations() {
|
||||
@SuppressWarnings("unchecked")
|
||||
List<MorphoAnalysis> list = (List<MorphoAnalysis>)
|
||||
|
||||
@@ -106,6 +106,14 @@ public class MainActivity extends Activity {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
mSourceLanguageView.setSelectedLanguage(mTranslator.getSourceLanguage());
|
||||
mTargetLanguageView.setSelectedLanguage(mTranslator.getTargetLanguage());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
if (mAsr != null) {
|
||||
|
||||
Reference in New Issue
Block a user