|
|
|
@ -26,6 +26,8 @@ import com.fox2code.mmm.compat.CompatDisplay;
|
|
|
|
|
import com.fox2code.mmm.installer.InstallerInitializer;
|
|
|
|
|
import com.fox2code.mmm.manager.LocalModuleInfo;
|
|
|
|
|
import com.fox2code.mmm.manager.ModuleManager;
|
|
|
|
|
import com.fox2code.mmm.module.ModuleViewAdapter;
|
|
|
|
|
import com.fox2code.mmm.module.ModuleViewListBuilder;
|
|
|
|
|
import com.fox2code.mmm.repo.RepoManager;
|
|
|
|
|
import com.fox2code.mmm.settings.SettingsActivity;
|
|
|
|
|
import com.fox2code.mmm.utils.Http;
|
|
|
|
@ -378,9 +380,7 @@ public class MainActivity extends CompatActivity implements SwipeRefreshLayout.O
|
|
|
|
|
this.searchView.clearFocus();
|
|
|
|
|
if (this.initMode) return false;
|
|
|
|
|
if (this.moduleViewListBuilder.setQueryChange(query)) {
|
|
|
|
|
new Thread(() -> {
|
|
|
|
|
this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter);
|
|
|
|
|
}, "Query update thread").start();
|
|
|
|
|
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -389,9 +389,7 @@ public class MainActivity extends CompatActivity implements SwipeRefreshLayout.O
|
|
|
|
|
public boolean onQueryTextChange(String query) {
|
|
|
|
|
if (this.initMode) return false;
|
|
|
|
|
if (this.moduleViewListBuilder.setQueryChange(query)) {
|
|
|
|
|
new Thread(() -> {
|
|
|
|
|
this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter);
|
|
|
|
|
}, "Query update thread").start();
|
|
|
|
|
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -400,9 +398,7 @@ public class MainActivity extends CompatActivity implements SwipeRefreshLayout.O
|
|
|
|
|
public boolean onClose() {
|
|
|
|
|
if (this.initMode) return false;
|
|
|
|
|
if (this.moduleViewListBuilder.setQueryChange(null)) {
|
|
|
|
|
new Thread(() -> {
|
|
|
|
|
this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter);
|
|
|
|
|
}, "Query update thread").start();
|
|
|
|
|
new Thread(() -> this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter), "Query update thread").start();
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|