Hide meta info panel in search when starting a new search
This commit is contained in:
parent
47c3ebcd98
commit
c401e8ad76
5 changed files with 28 additions and 38 deletions
|
|
@ -274,10 +274,9 @@ public final class ExtractorHelper {
|
|||
final TextView metaInfoTextView,
|
||||
final View metaInfoSeparator) {
|
||||
final Context context = metaInfoTextView.getContext();
|
||||
final boolean showMetaInfo = PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(context.getString(R.string.show_meta_info_key), true);
|
||||
|
||||
if (!showMetaInfo || metaInfos == null || metaInfos.isEmpty()) {
|
||||
if (metaInfos == null || metaInfos.isEmpty()
|
||||
|| !PreferenceManager.getDefaultSharedPreferences(context).getBoolean(
|
||||
context.getString(R.string.show_meta_info_key), true)) {
|
||||
metaInfoTextView.setVisibility(View.GONE);
|
||||
metaInfoSeparator.setVisibility(View.GONE);
|
||||
return Disposable.empty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue