add baidu search engine
add baidu search engine
This commit is contained in:
parent
43d8b3c69c
commit
5b48997c74
@ -1692,6 +1692,9 @@ public class BarebonesActivity extends Activity {
|
||||
case 5:
|
||||
SEARCH = FinalVariables.DUCK_SEARCH;
|
||||
break;
|
||||
case 6:
|
||||
SEARCH = FinalVariables.BAIDU_SEARCH;
|
||||
break;
|
||||
}
|
||||
|
||||
exitTab = getResources().getDrawable(R.drawable.stop); // user
|
||||
|
@ -1654,6 +1654,9 @@ public class IncognitoModeActivity extends Activity {
|
||||
case 5:
|
||||
SEARCH = FinalVariables.DUCK_SEARCH;
|
||||
break;
|
||||
case 6:
|
||||
SEARCH = FinalVariables.BAIDU_SEARCH;
|
||||
break;
|
||||
}
|
||||
|
||||
exitTab = getResources().getDrawable(R.drawable.stop); // user
|
||||
|
@ -88,6 +88,9 @@ public class SettingsActivity extends Activity {
|
||||
case 5:
|
||||
searchText.setText("DuckDuckGo");
|
||||
break;
|
||||
case 6:
|
||||
searchText.setText("Baidu");
|
||||
break;
|
||||
}
|
||||
|
||||
back.setBackgroundResource(R.drawable.button);
|
||||
@ -211,7 +214,7 @@ public class SettingsActivity extends Activity {
|
||||
SettingsActivity.this);
|
||||
picker.setTitle("Search Engine");
|
||||
CharSequence[] chars = { "Google (Suggested)", "Bing", "Yahoo",
|
||||
"StartPage", "DuckDuckGo (Privacy)" };
|
||||
"StartPage", "DuckDuckGo (Privacy)" ,"Baidu"};
|
||||
|
||||
int n = settings.getInt("search", 1);
|
||||
|
||||
@ -239,6 +242,9 @@ public class SettingsActivity extends Activity {
|
||||
case 5:
|
||||
searchText.setText("DuckDuckGo");
|
||||
break;
|
||||
case 6:
|
||||
searchText.setText("Baidu");
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -15,6 +15,7 @@ public class FinalVariables {
|
||||
public static final String GOOGLE_SEARCH = "https://www.google.com/search?client=lightning&q=";
|
||||
public static final String BING_SEARCH = "http://www.bing.com/search?q=";
|
||||
public static final String DUCK_SEARCH = "https://duckduckgo.com/?t=lightning&q=";
|
||||
public static final String BAIDU_SEARCH = "http://www.baidu.com/s?wd=";
|
||||
public static final String STARTPAGE_SEARCH = "https://startpage.com/do/metasearch.pl?language=english&cat=web&query=";
|
||||
public static final String HOMEPAGE = "https://www.google.com/";
|
||||
public static final String SETTINGS_INTENT = "android.intent.action.SETTINGS";
|
||||
|
Loading…
Reference in New Issue
Block a user