mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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