Don't recreate the MainActivity when the minimize setting is changed

Recreating is only needed when something in the UI changes
This commit is contained in:
Jakob Nixdorf 2020-02-03 07:00:02 +01:00
parent 75f2ce95a3
commit cb98937167
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -390,8 +390,7 @@ public class MainActivity extends BaseActivity
if (key.equals(getString(R.string.settings_key_label_size)) ||
key.equals(getString(R.string.settings_key_label_scroll)) ||
key.equals(getString(R.string.settings_key_split_group_size)) ||
key.equals(getString(R.string.settings_key_thumbnail_size)) ||
key.equals(getString(R.string.settings_key_minimize_on_copy))) {
key.equals(getString(R.string.settings_key_thumbnail_size))) {
adapter.notifyDataSetChanged();
} else if (key.equals(getString(R.string.settings_key_search_includes))) {
adapter.clearFilter();