Fix refresh appearance settings #452 #451

This commit is contained in:
J-Jamet
2020-02-27 12:54:47 +01:00
parent 2b875e94dc
commit 58db516e44
2 changed files with 5 additions and 2 deletions

View File

@@ -194,7 +194,10 @@ class ListNodesFragment : StylishFragment(), SortDialogFragment.SortSelectionLis
}
// Refresh data
mAdapter?.notifyDataSetChanged()
mAdapter?.apply {
assignPreferences()
notifyDataSetChanged()
}
if (isASearchResult && mAdapter!= null && mAdapter!!.isEmpty) {
// To show the " no search entry found "

View File

@@ -118,7 +118,7 @@ class NodeAdapter
taTextColor.recycle()
}
private fun assignPreferences() {
fun assignPreferences() {
this.prefTextSize = PreferencesUtil.getListTextSize(context)
this.infoTextSize = context.resources.getDimension(R.dimen.list_medium_size_default) * prefTextSize
this.subtextSize = context.resources.getDimension(R.dimen.list_small_size_default) * prefTextSize