Fix add entry education hint with default templates

This commit is contained in:
J-Jamet
2021-09-07 14:00:02 +02:00
parent f920d40db5
commit 8dd6c33901
2 changed files with 1 additions and 6 deletions

View File

@@ -934,9 +934,7 @@ class GroupActivity : DatabaseLockActivity(),
) { ) {
// If no node, show education to add new one // If no node, show education to add new one
val addNodeButtonEducationPerformed = mGroupFragment != null val addNodeButtonEducationPerformed = actionNodeMode == null
&& mGroupFragment!!.isEmpty
&& actionNodeMode == null
&& addNodeButtonView?.addButtonView != null && addNodeButtonView?.addButtonView != null
&& addNodeButtonView!!.isEnable && addNodeButtonView!!.isEnable
&& groupActivityEducation.checkAndPerformedAddNodeButtonEducation( && groupActivityEducation.checkAndPerformedAddNodeButtonEducation(

View File

@@ -74,9 +74,6 @@ class GroupFragment : DatabaseFragment(), SortDialogFragment.SortSelectionListen
private var mRecycleBinEnable: Boolean = false private var mRecycleBinEnable: Boolean = false
private var mRecycleBin: Group? = null private var mRecycleBin: Group? = null
val isEmpty: Boolean
get() = mAdapter == null || mAdapter?.itemCount?:0 <= 0
private var mRecycleViewScrollListener = object : RecyclerView.OnScrollListener() { private var mRecycleViewScrollListener = object : RecyclerView.OnScrollListener() {
override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) { override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
super.onScrollStateChanged(recyclerView, newState) super.onScrollStateChanged(recyclerView, newState)