forked from GitHub/gf-core
bugfixes in the app
This commit is contained in:
@@ -491,12 +491,18 @@ public class AlternativesActivity extends ListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void filterOnTopics(List<Topic> selected_topics) {
|
void filterOnTopics(List<Topic> selected_topics) {
|
||||||
if (mSourceTopic != null && !selected_topics.contains(mSourceTopic))
|
if (mSourceTopic != null && !selected_topics.contains(mSourceTopic)) {
|
||||||
mAlternatives = null;
|
mAlternatives = null;
|
||||||
|
mOriginalAlternatives = null;
|
||||||
|
mTopics = null;
|
||||||
|
mAllTopics = mOriginalAllTopics;
|
||||||
|
}
|
||||||
|
|
||||||
if (mAlternatives == null) {
|
if (mAlternatives == null) {
|
||||||
if (selected_topics.size() == 0)
|
if (selected_topics.size() == 0) {
|
||||||
|
notifyDataSetChanged();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mSourceTopic = selected_topics.get(0);
|
mSourceTopic = selected_topics.get(0);
|
||||||
mAlternatives = mTranslator.getTopicWords(mSourceTopic.expr);
|
mAlternatives = mTranslator.getTopicWords(mSourceTopic.expr);
|
||||||
|
|||||||
Reference in New Issue
Block a user