mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-05 09:12:51 -06:00
synchronize the target languages in the main activity with the one in the lexicon activity
This commit is contained in:
@@ -44,6 +44,13 @@ public class LexicalEntryActivity extends ListActivity {
|
|||||||
updateTranslations();
|
updateTranslations();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
|
||||||
|
mShowLanguageView.setSelectedLanguage(mTranslator.getTargetLanguage());
|
||||||
|
}
|
||||||
|
|
||||||
private void updateTranslations() {
|
private void updateTranslations() {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
List<MorphoAnalysis> list = (List<MorphoAnalysis>)
|
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
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
if (mAsr != null) {
|
if (mAsr != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user