diff --git a/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.kt b/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.kt index 5f77d05..8c8e051 100644 --- a/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.kt +++ b/app/src/main/java/ch/dissem/apps/abit/AddressListFragment.kt @@ -85,10 +85,10 @@ class AddressListFragment : AbstractItemListFragment() super.onResume() initFab(activity as MainActivity) - updateList() + reloadList() } - fun updateList() { + override fun reloadList() { adapter.clear() context?.let { context -> val addressRepo = Singleton.getAddressRepository(context) @@ -138,7 +138,7 @@ class AddressListFragment : AbstractItemListFragment() } } - override fun updateList(label: Void) = updateList() + override fun updateList(label: Void) = reloadList() private data class ViewHolder( val ctx: Context, diff --git a/app/src/main/java/ch/dissem/apps/abit/ConversationListFragment.kt b/app/src/main/java/ch/dissem/apps/abit/ConversationListFragment.kt index 4e9439c..ab09695 100644 --- a/app/src/main/java/ch/dissem/apps/abit/ConversationListFragment.kt +++ b/app/src/main/java/ch/dissem/apps/abit/ConversationListFragment.kt @@ -33,6 +33,7 @@ import ch.dissem.apps.abit.listener.ListSelectionListener import ch.dissem.apps.abit.repository.AndroidMessageRepository import ch.dissem.apps.abit.service.Singleton import ch.dissem.apps.abit.service.Singleton.currentLabel +import ch.dissem.apps.abit.util.preferences import ch.dissem.bitmessage.entity.Conversation import ch.dissem.bitmessage.entity.valueobject.Label import ch.dissem.bitmessage.utils.ConversationService @@ -43,7 +44,9 @@ import com.h6ah4i.android.widget.advrecyclerview.touchguard.RecyclerViewTouchAct import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils import io.github.kobakei.materialfabspeeddial.FabSpeedDialMenu import kotlinx.android.synthetic.main.fragment_message_list.* +import org.jetbrains.anko.cancelButton import org.jetbrains.anko.doAsync +import org.jetbrains.anko.support.v4.alert import org.jetbrains.anko.support.v4.onUiThread import org.jetbrains.anko.uiThread import java.util.* @@ -90,6 +93,7 @@ class ConversationListFragment : Fragment(), ListHolder