Skip to content

Commit f637539

Browse files
committed
fix git conflict
Signed-off-by: alperozturk <[email protected]>
1 parent 1ff98c5 commit f637539

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import com.nextcloud.client.preferences.AppPreferences
5757
import com.nextcloud.client.preferences.AppPreferencesImpl
5858
import com.nextcloud.utils.extensions.getTypedActivity
5959
import com.nextcloud.utils.extensions.mainThread
60+
import com.nextcloud.utils.extensions.setVisibleIf
6061
import com.owncloud.android.MainApp
6162
import com.owncloud.android.R
6263
import com.owncloud.android.databinding.ListFragmentBinding
@@ -777,6 +778,17 @@ open class ExtendedListFragment :
777778
}
778779
}
779780

781+
protected fun toggleEmptyListView(showEmptyListState: Boolean) {
782+
mEmptyListContainer.setVisibleIf(showEmptyListState)
783+
784+
// clear previous state
785+
if (!showEmptyListState) {
786+
mEmptyListMessage?.text = ""
787+
mEmptyListHeadline?.text = ""
788+
mEmptyListIcon?.setImageDrawable(null)
789+
}
790+
}
791+
780792
protected fun isAccountManagerInitialized(): Boolean = ::accountManager.isInitialized
781793

782794
private data class EmptyListData(val headline: Int, val message: Int, val icon: Int?, val tintIcon: Boolean)

0 commit comments

Comments
 (0)