Skip to content

Commit

Permalink
Removed incorrect change of search bar background color
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasBielefeld committed Jun 24, 2024
1 parent 6791bba commit 2ac2a9e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class SharedData {

public static String PREF_RECORD_LIST_SIZE;
public static String PREF_RECORD_ENTRY;
public static String PREF_DARK_THEME;
public static String PREF_THEME;
public static String PREF_HIDE_APP_ICON;
public static String PREF_SEARCH_URL;
Expand All @@ -60,7 +59,6 @@ public class SharedData {
public static String DEFAULT_SEARCH_URL;
public static String DEFAULT_ORIENTATION;
public static boolean DEFAULT_STATUS_BAR;
public static boolean DEFAULT_DARK_THEME;
public static boolean DEFAULT_CLOSE_AFTER_SEARCH;
public static int DEFAULT_THEME;
public static int DEFAULT_SEARCH_SELECTED_INDEX;
Expand All @@ -86,7 +84,6 @@ public static void reinitializeData(Context context){
PREF_ORIENTATION = res.getString(R.string.pref_key_orientation);
PREF_STATUS_BAR = res.getString(R.string.pref_key_hide_status_bar);
PREF_LANGUAGE = res.getString(R.string.pref_key_language);
PREF_DARK_THEME = res.getString(R.string.pref_key_dark_theme);
PREF_THEME = res.getString(R.string.pref_key_theme);
PREF_CUSTOM_SEARCH_URL = res.getString(R.string.pref_key_custom_search_url);
PREF_HIDE_APP_ICON = res.getString(R.string.pref_key_hide_app_icon);
Expand All @@ -96,7 +93,6 @@ public static void reinitializeData(Context context){
DEFAULT_SEARCH_URL = res.getStringArray(R.array.search_engine_uris)[DEFAULT_SEARCH_SELECTED_INDEX];
DEFAULT_ORIENTATION = res.getStringArray(R.array.pref_orientation_values)[0];
DEFAULT_STATUS_BAR = res.getBoolean(R.bool.default_status_bar);
DEFAULT_DARK_THEME = res.getBoolean(R.bool.default_dark_theme);
DEFAULT_THEME = res.getInteger(R.integer.default_theme);
DEFAULT_HIDE_APP_ICON = res.getBoolean(R.bool.default_hide_app_icon);
DEFAULT_CLOSE_AFTER_SEARCH = res.getBoolean(R.bool.default_close_after_search);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ protected void onCreate(Bundle savedInstanceState) {
searchText.setOnEditorActionListener(this);

records = new Records(this, (LinearLayout) findViewById(R.id.record_list_container));

if (getSavedBoolean(PREF_DARK_THEME, DEFAULT_DARK_THEME)) {
LinearLayout textSearch = findViewById(R.id.linearLayoutSearchText);
textSearch.setBackgroundResource(R.drawable.widget_background_dark);
}
}

@Override
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/bool.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="default_status_bar">false</bool>
<bool name="default_dark_theme">false</bool>
<bool name="default_hide_app_icon">false</bool>
<bool name="default_close_after_search">false</bool>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings-changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<string name="changelog_10_1" translatable="false">Add small delay to showing the keyboard to fix it not showing at all</string>
<string name="changelog_10_2" translatable="false">Add option to close app after starting the search</string>
<string name="changelog_10_3" translatable="false">Removed incorrect change of search bar background color</string>

<string name="changelog_9_1" translatable="false">Use white as app background in light mode again</string>

Expand Down
1 change: 1 addition & 0 deletions metadata/en/changelogs/13.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Add small delay to showing the keyboard to fix it not showing at all
* Add option to close app after starting the search
* Removed incorrect change of search bar background color

0 comments on commit 2ac2a9e

Please sign in to comment.