Fix refresh appearance settings #452 #451

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

No files matched your search

@@ -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 "
@@ -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