mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 07:08:30 +01:00
Export external search
This commit is contained in:
@@ -616,6 +616,12 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
jsettings.put(jsetting);
|
||||
}
|
||||
|
||||
JSONObject jsearch = new JSONObject();
|
||||
jsearch.put("key", "external_search");
|
||||
jsearch.put("value", Helper.isComponentEnabled(context, ActivitySearch.class));
|
||||
jsearch.put("type", "bool");
|
||||
jsettings.put(jsearch);
|
||||
|
||||
JSONObject jexport = new JSONObject();
|
||||
jexport.put("accounts", jaccounts);
|
||||
jexport.put("answers", janswers);
|
||||
@@ -975,6 +981,12 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
if (key != null && key.startsWith("widget."))
|
||||
continue;
|
||||
|
||||
if ("external_search".equals(key)) {
|
||||
boolean external_search = jsetting.getBoolean("value");
|
||||
Helper.enableComponent(context, ActivitySearch.class, external_search);
|
||||
continue;
|
||||
}
|
||||
|
||||
Object value = jsetting.get("value");
|
||||
String type = jsetting.optString("type");
|
||||
Log.i("Setting name=" + key + " value=" + value + " type=" + type);
|
||||
|
||||
Reference in New Issue
Block a user