From a17685fd105f176cfdb8256a994d679f70a23c6a Mon Sep 17 00:00:00 2001
From: Christian Basler
Date: Sun, 6 Sep 2015 17:45:21 +0200
Subject: [PATCH] Added some actions
---
.../apps/abit/ComposeMessageActivity.java | 8 ++-
.../apps/abit/ComposeMessageFragment.java | 24 +++----
.../apps/abit/MessageDetailFragment.java | 65 ++++++++++++++++--
.../dissem/apps/abit/MessageListActivity.java | 35 +++++++++-
.../dissem/apps/abit/MessageListFragment.java | 61 ++++++++++++----
.../abit/listeners/ActionBarListener.java | 24 +++++++
.../abit/{ => listeners}/MessageListener.java | 6 +-
.../dissem/apps/abit/service/Singleton.java | 2 +-
.../ch/dissem/apps/abit/utils/Drawables.java | 32 +++++++++
.../res/drawable-hdpi/ic_action_delete.png | Bin 642 -> 399 bytes
.../drawable-hdpi/ic_action_mark_unread.png | Bin 0 -> 347 bytes
.../drawable-hdpi/ic_action_placeholder.png | Bin 0 -> 678 bytes
.../res/drawable-hdpi/ic_action_reply.png | Bin 486 -> 632 bytes
.../res/drawable-mdpi/ic_action_delete.png | Bin 428 -> 257 bytes
.../drawable-mdpi/ic_action_mark_unread.png | Bin 0 -> 257 bytes
.../drawable-mdpi/ic_action_placeholder.png | Bin 0 -> 433 bytes
.../res/drawable-mdpi/ic_action_reply.png | Bin 330 -> 412 bytes
.../res/drawable-xhdpi/ic_action_delete.png | Bin 775 -> 491 bytes
.../drawable-xhdpi/ic_action_mark_unread.png | Bin 0 -> 394 bytes
.../drawable-xhdpi/ic_action_placeholder.png | Bin 0 -> 844 bytes
.../res/drawable-xhdpi/ic_action_reply.png | Bin 623 -> 849 bytes
.../res/drawable-xxhdpi/ic_action_delete.png | Bin 1171 -> 849 bytes
.../drawable-xxhdpi/ic_action_mark_unread.png | Bin 0 -> 620 bytes
.../drawable-xxhdpi/ic_action_placeholder.png | Bin 0 -> 1391 bytes
.../res/drawable-xxhdpi/ic_action_reply.png | Bin 929 -> 1364 bytes
.../res/drawable-xxxhdpi/ic_action_delete.png | Bin 0 -> 1072 bytes
.../res/drawable-xxxhdpi/ic_action_reply.png | Bin 0 -> 1929 bytes
.../res/layout/fragment_subscribtions.xml | 31 +++++++++
app/src/main/res/menu/message.xml | 25 +++++++
app/src/main/res/menu/message_list.xml | 11 +++
app/src/main/res/values-de/strings.xml | 6 ++
app/src/main/res/values/strings.xml | 3 +
32 files changed, 297 insertions(+), 36 deletions(-)
create mode 100644 app/src/main/java/ch/dissem/apps/abit/listeners/ActionBarListener.java
rename app/src/main/java/ch/dissem/apps/abit/{ => listeners}/MessageListener.java (97%)
create mode 100644 app/src/main/java/ch/dissem/apps/abit/utils/Drawables.java
mode change 100644 => 100755 app/src/main/res/drawable-hdpi/ic_action_delete.png
create mode 100644 app/src/main/res/drawable-hdpi/ic_action_mark_unread.png
create mode 100644 app/src/main/res/drawable-hdpi/ic_action_placeholder.png
mode change 100644 => 100755 app/src/main/res/drawable-hdpi/ic_action_reply.png
mode change 100644 => 100755 app/src/main/res/drawable-mdpi/ic_action_delete.png
create mode 100644 app/src/main/res/drawable-mdpi/ic_action_mark_unread.png
create mode 100644 app/src/main/res/drawable-mdpi/ic_action_placeholder.png
mode change 100644 => 100755 app/src/main/res/drawable-mdpi/ic_action_reply.png
mode change 100644 => 100755 app/src/main/res/drawable-xhdpi/ic_action_delete.png
create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_mark_unread.png
create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_placeholder.png
mode change 100644 => 100755 app/src/main/res/drawable-xhdpi/ic_action_reply.png
mode change 100644 => 100755 app/src/main/res/drawable-xxhdpi/ic_action_delete.png
create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_mark_unread.png
create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_placeholder.png
mode change 100644 => 100755 app/src/main/res/drawable-xxhdpi/ic_action_reply.png
create mode 100755 app/src/main/res/drawable-xxxhdpi/ic_action_delete.png
create mode 100755 app/src/main/res/drawable-xxxhdpi/ic_action_reply.png
create mode 100644 app/src/main/res/layout/fragment_subscribtions.xml
create mode 100644 app/src/main/res/menu/message.xml
create mode 100644 app/src/main/res/menu/message_list.xml
diff --git a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.java b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.java
index c64fde7..a8f35fc 100644
--- a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.java
+++ b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.java
@@ -3,11 +3,15 @@ package ch.dissem.apps.abit;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
+import ch.dissem.bitmessage.entity.BitmessageAddress;
/**
* Compose a new message.
*/
public class ComposeMessageActivity extends AppCompatActivity {
+ public static final String EXTRA_IDENTITY = "ch.dissem.abit.Message.SENDER";
+ public static final String EXTRA_RECIPIENT = "ch.dissem.abit.Message.RECIPIENT";
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -21,8 +25,10 @@ public class ComposeMessageActivity extends AppCompatActivity {
getSupportActionBar().setHomeButtonEnabled(false);
// Display the fragment as the main content.
+ ComposeMessageFragment fragment = new ComposeMessageFragment();
+ fragment.setArguments(getIntent().getExtras());
getSupportFragmentManager().beginTransaction()
- .replace(R.id.content, new ComposeMessageFragment())
+ .replace(R.id.content, fragment)
.commit();
}
}
diff --git a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageFragment.java b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageFragment.java
index 27615a0..88145fb 100644
--- a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageFragment.java
+++ b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageFragment.java
@@ -9,19 +9,13 @@ import android.widget.Toast;
import ch.dissem.bitmessage.BitmessageContext;
import ch.dissem.bitmessage.entity.BitmessageAddress;
+import static ch.dissem.apps.abit.ComposeMessageActivity.EXTRA_IDENTITY;
+import static ch.dissem.apps.abit.ComposeMessageActivity.EXTRA_RECIPIENT;
+
/**
* Compose a new message.
*/
public class ComposeMessageFragment extends Fragment {
- /**
- * The fragment argument representing the sender identity.
- */
- public static final String ARG_IDENTITY = "from";
- /**
- * The fragment argument representing the recipient.
- */
- public static final String ARG_RECIPIENT = "to";
-
private BitmessageContext bmCtx;
private BitmessageAddress identity;
private BitmessageAddress recipient;
@@ -37,11 +31,11 @@ public class ComposeMessageFragment extends Fragment {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
- if (getArguments().containsKey(ARG_IDENTITY)) {
- identity = (BitmessageAddress) getArguments().getSerializable(ARG_IDENTITY);
+ if (getArguments().containsKey(EXTRA_IDENTITY)) {
+ identity = (BitmessageAddress) getArguments().getSerializable(EXTRA_IDENTITY);
}
- if (getArguments().containsKey(ARG_RECIPIENT)) {
- recipient = (BitmessageAddress) getArguments().getSerializable(ARG_RECIPIENT);
+ if (getArguments().containsKey(EXTRA_RECIPIENT)) {
+ recipient = (BitmessageAddress) getArguments().getSerializable(EXTRA_RECIPIENT);
}
}
setHasOptionsMenu(true);
@@ -51,6 +45,10 @@ public class ComposeMessageFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_compose_message, container, false);
+ if (recipient != null) {
+ EditText recipientInput = (EditText) rootView.findViewById(R.id.recipient);
+ recipientInput.setText(recipient.toString());
+ }
EditText body = (EditText) rootView.findViewById(R.id.body);
body.setInputType(EditorInfo.TYPE_TEXT_VARIATION_SHORT_MESSAGE | EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE);
body.setImeOptions(EditorInfo.IME_ACTION_SEND | EditorInfo.IME_FLAG_NO_ENTER_ACTION);
diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageDetailFragment.java b/app/src/main/java/ch/dissem/apps/abit/MessageDetailFragment.java
index 03b3c30..dfe0d14 100644
--- a/app/src/main/java/ch/dissem/apps/abit/MessageDetailFragment.java
+++ b/app/src/main/java/ch/dissem/apps/abit/MessageDetailFragment.java
@@ -1,16 +1,18 @@
package ch.dissem.apps.abit;
+import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
+import android.view.*;
import android.widget.ImageView;
import android.widget.TextView;
import ch.dissem.apps.abit.service.Singleton;
+import ch.dissem.apps.abit.utils.Drawables;
+import ch.dissem.bitmessage.BitmessageContext;
import ch.dissem.bitmessage.entity.BitmessageAddress;
import ch.dissem.bitmessage.entity.Plaintext;
import ch.dissem.bitmessage.entity.valueobject.Label;
+import com.mikepenz.google_material_typeface_library.GoogleMaterial;
import java.util.Iterator;
@@ -29,10 +31,11 @@ public class MessageDetailFragment extends Fragment {
public static final String ARG_ITEM = "item";
/**
- * The dummy content this fragment is presenting.
+ * The content this fragment is presenting.
*/
private Plaintext item;
+
/**
* Mandatory empty constructor for the fragment manager to instantiate the
* fragment (e.g. upon screen orientation changes).
@@ -50,6 +53,7 @@ public class MessageDetailFragment extends Fragment {
// to load content from a content provider.
item = (Plaintext) getArguments().getSerializable(ARG_ITEM);
}
+ setHasOptionsMenu(true);
}
@Override
@@ -84,4 +88,57 @@ public class MessageDetailFragment extends Fragment {
}
return rootView;
}
+
+ @Override
+ public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
+ inflater.inflate(R.menu.message, menu);
+
+ Drawables.addIcon(getActivity(), menu, R.id.reply, GoogleMaterial.Icon.gmd_reply);
+ Drawables.addIcon(getActivity(), menu, R.id.delete, GoogleMaterial.Icon.gmd_delete);
+ Drawables.addIcon(getActivity(), menu, R.id.mark_unread, GoogleMaterial.Icon.gmd_markunread);
+ Drawables.addIcon(getActivity(), menu, R.id.archive, GoogleMaterial.Icon.gmd_archive);
+
+ super.onCreateOptionsMenu(menu, inflater);
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem menuItem) {
+ BitmessageContext bmc = Singleton.getBitmessageContext(getActivity());
+ switch (menuItem.getItemId()) {
+ case R.id.reply:
+ Intent replyIntent = new Intent(getActivity().getApplicationContext(), ComposeMessageActivity.class);
+ replyIntent.putExtra(ComposeMessageActivity.EXTRA_RECIPIENT, item.getFrom());
+ replyIntent.putExtra(ComposeMessageActivity.EXTRA_IDENTITY, item.getTo());
+ startActivity(replyIntent);
+ return true;
+ case R.id.delete:
+ if (isInTrash(item)) {
+ bmc.messages().remove(item);
+ } else {
+ item.getLabels().clear();
+ item.addLabels(bmc.messages().getLabels(Label.Type.TRASH));
+ bmc.messages().save(item);
+ }
+ return true;
+ case R.id.mark_unread:
+ item.addLabels(bmc.messages().getLabels(Label.Type.UNREAD));
+ bmc.messages().save(item);
+ return true;
+ case R.id.archive:
+ item.getLabels().clear();
+ bmc.messages().save(item);
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ private boolean isInTrash(Plaintext item) {
+ for (Label label : item.getLabels()) {
+ if (label.getType() == Label.Type.TRASH) {
+ return true;
+ }
+ }
+ return false;
+ }
}
diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageListActivity.java b/app/src/main/java/ch/dissem/apps/abit/MessageListActivity.java
index 7c24cb1..84c2dc0 100644
--- a/app/src/main/java/ch/dissem/apps/abit/MessageListActivity.java
+++ b/app/src/main/java/ch/dissem/apps/abit/MessageListActivity.java
@@ -8,6 +8,7 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
+import ch.dissem.apps.abit.listeners.ActionBarListener;
import ch.dissem.apps.abit.service.Singleton;
import ch.dissem.bitmessage.BitmessageContext;
import ch.dissem.bitmessage.entity.BitmessageAddress;
@@ -51,7 +52,7 @@ import java.util.ArrayList;
*
*/
public class MessageListActivity extends AppCompatActivity
- implements MessageListFragment.Callbacks {
+ implements MessageListFragment.Callbacks, ActionBarListener {
public static final String EXTRA_SHOW_MESSAGE = "ch.dissem.abit.ShowMessage";
public static final String ACTION_SHOW_INBOX = "ch.dissem.abit.ShowInbox";
@@ -157,7 +158,30 @@ public class MessageListActivity extends AppCompatActivity
ArrayList drawerItems = new ArrayList<>();
for (Label label : bmc.messages().getLabels()) {
- drawerItems.add(new PrimaryDrawerItem().withName(label.toString()).withTag(label));
+ PrimaryDrawerItem item = new PrimaryDrawerItem().withName(label.toString()).withTag(label);
+ switch (label.getType()) {
+ case INBOX:
+ item.withIcon(GoogleMaterial.Icon.gmd_inbox);
+ break;
+ case DRAFT:
+ item.withIcon(CommunityMaterial.Icon.cmd_file);
+ break;
+ case SENT:
+ item.withIcon(CommunityMaterial.Icon.cmd_send);
+ break;
+ case BROADCAST:
+ item.withIcon(CommunityMaterial.Icon.cmd_rss);
+ break;
+ case UNREAD:
+ item.withIcon(GoogleMaterial.Icon.gmd_markunread_mailbox);
+ break;
+ case TRASH:
+ item.withIcon(GoogleMaterial.Icon.gmd_delete);
+ break;
+ default:
+ item.withIcon(CommunityMaterial.Icon.cmd_label);
+ }
+ drawerItems.add(item);
}
new DrawerBuilder()
@@ -168,7 +192,7 @@ public class MessageListActivity extends AppCompatActivity
.addStickyDrawerItems(
new SecondaryDrawerItem()
.withName(getString(R.string.subscriptions))
- .withIcon(CommunityMaterial.Icon.cmd_rss),
+ .withIcon(CommunityMaterial.Icon.cmd_rss_box),
new SecondaryDrawerItem()
.withName(R.string.settings)
.withIcon(GoogleMaterial.Icon.gmd_settings)
@@ -254,6 +278,11 @@ public class MessageListActivity extends AppCompatActivity
}
}
+ @Override
+ public void updateTitle(CharSequence title) {
+ getSupportActionBar().setTitle(title);
+ }
+
public Label getSelectedLabel() {
return selectedLabel;
}
diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.java b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.java
index abbd60d..45ef52b 100644
--- a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.java
+++ b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.java
@@ -6,17 +6,17 @@ import android.graphics.Typeface;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.ListFragment;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
+import android.view.*;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
+import ch.dissem.apps.abit.listeners.ActionBarListener;
import ch.dissem.apps.abit.service.Singleton;
import ch.dissem.bitmessage.BitmessageContext;
import ch.dissem.bitmessage.entity.Plaintext;
import ch.dissem.bitmessage.entity.valueobject.Label;
+import ch.dissem.bitmessage.ports.MessageRepository;
/**
* A list fragment representing a list of Messages. This fragment
@@ -39,12 +39,15 @@ public class MessageListFragment extends ListFragment {
* The fragment's current callback object, which is notified of list item
* clicks.
*/
- private Callbacks mCallbacks = sDummyCallbacks;
+ private Callbacks callbacks = dummyCallbacks;
/**
* The current activated item position. Only used on tablets.
*/
- private int mActivatedPosition = ListView.INVALID_POSITION;
+ private int activatedPosition = ListView.INVALID_POSITION;
+
+ private Label currentLabel;
+ private MenuItem emptyTrashMenuItem;
private BitmessageContext bmc;
@@ -64,7 +67,7 @@ public class MessageListFragment extends ListFragment {
* A dummy implementation of the {@link Callbacks} interface that does
* nothing. Used only when this fragment is not attached to an activity.
*/
- private static Callbacks sDummyCallbacks = new Callbacks() {
+ private static Callbacks dummyCallbacks = new Callbacks() {
@Override
public void onItemSelected(Plaintext plaintext) {
}
@@ -82,6 +85,7 @@ public class MessageListFragment extends ListFragment {
super.onCreate(savedInstanceState);
bmc = Singleton.getBitmessageContext(getActivity());
+ setHasOptionsMenu(true);
}
@Override
@@ -92,6 +96,7 @@ public class MessageListFragment extends ListFragment {
}
public void updateList(Label label) {
+ currentLabel = label;
setListAdapter(new ArrayAdapter(
getActivity(),
android.R.layout.simple_list_item_activated_1,
@@ -120,6 +125,12 @@ public class MessageListFragment extends ListFragment {
return convertView;
}
});
+ if (getActivity() instanceof ActionBarListener) {
+ ((ActionBarListener) getActivity()).updateTitle(label.toString());
+ }
+ if (emptyTrashMenuItem != null) {
+ emptyTrashMenuItem.setVisible(label != null && label.getType() == Label.Type.TRASH);
+ }
}
@Override
@@ -158,7 +169,7 @@ public class MessageListFragment extends ListFragment {
throw new IllegalStateException("Activity must implement fragment's callbacks.");
}
- mCallbacks = (Callbacks) activity;
+ callbacks = (Callbacks) activity;
}
@Override
@@ -166,7 +177,31 @@ public class MessageListFragment extends ListFragment {
super.onDetach();
// Reset the active callbacks interface to the dummy implementation.
- mCallbacks = sDummyCallbacks;
+ callbacks = dummyCallbacks;
+ }
+
+ @Override
+ public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
+ inflater.inflate(R.menu.message_list, menu);
+ emptyTrashMenuItem = menu.findItem(R.id.empty_trash);
+ super.onCreateOptionsMenu(menu, inflater);
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ switch (item.getItemId()) {
+ case R.id.empty_trash:
+ if (currentLabel.getType() != Label.Type.TRASH) return true;
+
+ MessageRepository repo = bmc.messages();
+ for (Plaintext message : repo.findMessages(currentLabel)) {
+ repo.remove(message);
+ }
+ updateList(currentLabel);
+ return true;
+ default:
+ return false;
+ }
}
@Override
@@ -175,15 +210,15 @@ public class MessageListFragment extends ListFragment {
// Notify the active callbacks interface (the activity, if the
// fragment is attached to one) that an item has been selected.
- mCallbacks.onItemSelected((Plaintext) listView.getItemAtPosition(position));
+ callbacks.onItemSelected((Plaintext) listView.getItemAtPosition(position));
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
- if (mActivatedPosition != ListView.INVALID_POSITION) {
+ if (activatedPosition != ListView.INVALID_POSITION) {
// Serialize and persist the activated item position.
- outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition);
+ outState.putInt(STATE_ACTIVATED_POSITION, activatedPosition);
}
}
@@ -201,11 +236,11 @@ public class MessageListFragment extends ListFragment {
private void setActivatedPosition(int position) {
if (position == ListView.INVALID_POSITION) {
- getListView().setItemChecked(mActivatedPosition, false);
+ getListView().setItemChecked(activatedPosition, false);
} else {
getListView().setItemChecked(position, true);
}
- mActivatedPosition = position;
+ activatedPosition = position;
}
}
diff --git a/app/src/main/java/ch/dissem/apps/abit/listeners/ActionBarListener.java b/app/src/main/java/ch/dissem/apps/abit/listeners/ActionBarListener.java
new file mode 100644
index 0000000..11b309a
--- /dev/null
+++ b/app/src/main/java/ch/dissem/apps/abit/listeners/ActionBarListener.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2015 Christian Basler
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package ch.dissem.apps.abit.listeners;
+
+/**
+ * Created by chris on 06.09.15.
+ */
+public interface ActionBarListener {
+ void updateTitle(CharSequence title);
+}
diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageListener.java b/app/src/main/java/ch/dissem/apps/abit/listeners/MessageListener.java
similarity index 97%
rename from app/src/main/java/ch/dissem/apps/abit/MessageListener.java
rename to app/src/main/java/ch/dissem/apps/abit/listeners/MessageListener.java
index c9adc4f..104ef70 100644
--- a/app/src/main/java/ch/dissem/apps/abit/MessageListener.java
+++ b/app/src/main/java/ch/dissem/apps/abit/listeners/MessageListener.java
@@ -14,9 +14,10 @@
* limitations under the License.
*/
-package ch.dissem.apps.abit;
+package ch.dissem.apps.abit.listeners;
import android.annotation.TargetApi;
+import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
@@ -33,6 +34,9 @@ import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.StyleSpan;
+import ch.dissem.apps.abit.Identicon;
+import ch.dissem.apps.abit.MessageListActivity;
+import ch.dissem.apps.abit.R;
import ch.dissem.bitmessage.BitmessageContext;
import ch.dissem.bitmessage.entity.Plaintext;
diff --git a/app/src/main/java/ch/dissem/apps/abit/service/Singleton.java b/app/src/main/java/ch/dissem/apps/abit/service/Singleton.java
index 8b0c68a..46b46e1 100644
--- a/app/src/main/java/ch/dissem/apps/abit/service/Singleton.java
+++ b/app/src/main/java/ch/dissem/apps/abit/service/Singleton.java
@@ -1,7 +1,7 @@
package ch.dissem.apps.abit.service;
import android.content.Context;
-import ch.dissem.apps.abit.MessageListener;
+import ch.dissem.apps.abit.listeners.MessageListener;
import ch.dissem.apps.abit.repositories.AndroidAddressRepository;
import ch.dissem.apps.abit.repositories.AndroidInventory;
import ch.dissem.apps.abit.repositories.AndroidMessageRepository;
diff --git a/app/src/main/java/ch/dissem/apps/abit/utils/Drawables.java b/app/src/main/java/ch/dissem/apps/abit/utils/Drawables.java
new file mode 100644
index 0000000..d646608
--- /dev/null
+++ b/app/src/main/java/ch/dissem/apps/abit/utils/Drawables.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2015 Christian Basler
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package ch.dissem.apps.abit.utils;
+
+import android.content.Context;
+import android.view.Menu;
+import ch.dissem.apps.abit.R;
+import com.mikepenz.google_material_typeface_library.GoogleMaterial;
+import com.mikepenz.iconics.IconicsDrawable;
+
+/**
+ * Some helper methods to work with drawables.
+ */
+public class Drawables {
+ public static void addIcon(Context ctx, Menu menu, int menuItem, GoogleMaterial.Icon icon) {
+ menu.findItem(menuItem).setIcon(new IconicsDrawable(ctx, icon).colorRes(R.color.primary_text_default_material_dark).actionBar());
+ }
+}
diff --git a/app/src/main/res/drawable-hdpi/ic_action_delete.png b/app/src/main/res/drawable-hdpi/ic_action_delete.png
old mode 100644
new mode 100755
index 4bb5259e1b93ae16b05c0c524be2a009525b72ee..d912755d26e13bf4041b0a32f5bc945d68fb648c
GIT binary patch
delta 373
zcmV-*0gC>D1&;%eBYy!_Nkl(v+Y+u@73#?Fd5MEXVCNh5rN;HpeFE_
zCNKo9jD+5SS0gqH^H}IOlj#z;b~f||EHW`)mV8zMN5BJc(tnaPokyNcOVHIK(kvq5%8#G#A*U1p>zid3dusUP)PwL@)7JBONBX9bsJ1$+q=6U4T=q+&JDdNB`fw==8`j_$y7y+lALI&&y
z@C>XC*gYgNffSrb+yLhl?38S?0$#k$r$(X#JR)_96@gCWH6+&r3?g+3>HP$@g#k7(
TT1Q=|00000NkvXXu0mjfJ)x*Q
delta 618
zcmV-w0+s!b1A+yRBYy%(Nklk_uO-5TrNi(am0~-
zBkgv3I+MvP{HF1Ee7@W5PT11;a5%i>^?Ki-tpR#(O9FnsUw=1Ye9PnUe3VM1DccbU
z27|{m(C71&bzNWUS54D`<3ix^r+yIF9vcFkPG>Tk&CaIN=|wJHwrxisl}gRQ=mW(5
z8H~P$J{xh~9JCHd5_-k4#2}WK;h|7y9h2X{kh+;gYf|gPB(~)QxJVTm-tU>RM7n&l
ziU6@KCxAuxVt*9@Vp~oi5{c|$vVsK!3d9y$%&2Qt5wj6Yd=A$?7@ldEFtovYIfi42
zK`dMB1%bcLG>!HvCp_C#xWdA3}O+}c9rLlDSuR#ta~)o1mJ;y7y*WYY68R*
zBY=Fpr7$&z8l%*ksAZ4y(A
z0MERbw5E_ijhLeK5VrrS!jo84yr9Fx6@?zCh!en5D=PFraTFfNEA&8q6duSa^gwPD
z9=KCT;A2*t0IJ7Rg{Aa~I05EuOq}}T8@f6%#P@(+NhXs^I8BA&kxPWa6O4K_-cI!H
z)J@|W`wG05V>s59A3MI^PV=h2T*U#D91bQLJyOMSVqsC;wD8Fv1dwplwZs85k&KvpbWdo6t^&
zAP9mW2%;GjMKKZ1JabaTz+U+9%smazfJXyU;mxCXTYFly6ZM7b9~-%$X1}WVu6phv
z>9s-O7u4vLY52y#Mz|G*j*%6L)hT@C2oF(vQ^!Y~3wOdniIJ>=@T^4m0JZWax{yKg
zp^6EF%MXoY7!#;GL*zEUXrp#^4#L=35i2TvBRoZnp79vDav$e_K}_VV$U=Blac8{K
zGag~AX~RKgMI41A-8~?B?sT&eVoe)QVk;`qTg%xh$p^x{UL{^e#^C7-;jOp}-9cXF
tXn+Q2fCgy5i-G_Cu|*IBK@bG-9#6$BFeoiTS5W`}002ovPDHLkV1l^$k+T2*
literal 0
HcmV?d00001
diff --git a/app/src/main/res/drawable-hdpi/ic_action_placeholder.png b/app/src/main/res/drawable-hdpi/ic_action_placeholder.png
new file mode 100644
index 0000000000000000000000000000000000000000..cde7713adafb858e31d495ae647969ec49a05c61
GIT binary patch
literal 678
zcmV;X0$KfuP)1U{E6lkfK>?`8Ro<9JAsNaQ_u?V)`w7;{V|bp8-5
zf{YuqO#wf^W5;BIfKl*{%S!@9pqzLBlDRqo@P*YiZ6F`~0;Ql6dq!#6eb!1!(d->fg7eeLlj3llRWJZ
z)#(RMbO$<;!Eb>uCN__|)fUCgPNMftrb0~CfHhzZ+;Ia*f|yxUSPr*I+!oYhd1-yD`tqnKN@g&oecrW;1iHGr#Zkc4p3;
zfseU?>o)={bp*!p^F7^I5H6<>b!N8H8ZzCcm{QqrcaQ$OK0p0zbB&u;?g%kxz_
z|Kbtubg7X#fPYzvp9Xq^tN4-=jpYCkxvX}w7tDF6jT&K{5?qBJS?iff1>Zyc!riw$uL4;$5I?5a)a6kdCa65h&hK*IuhW=2l@NwqhH0Os=?JH=f{n6MuXTKwUbeevL+Cc404eV`YWV
zI2bsO_jM4t01I`eRDfwsn{WvGDnMeVzBwy^sz~Gj6#6#f1olh`{)Mx3wa_I3RW;EC
zpjdA|j$_T_Mtm#9SyScc17JFx`T&Uaw&Nt$;}tH=8lZrPlexYQwl?52qDIak{w4k!
zeMO*HI9X2S?)P{yw*{vrKS2)`1E8sG=RA*eI)EEP1qj_cCx-(wPoW$Sce3fb20Dq!
uF&+VOyw<197=b>$nX}dyfgG>(Y4Z>NhHNn~mN@PJ0000%#@rfXU3VGBtiE)vwhPaF1
zrie(?A8?bkQmL))RX!!Z=DAQL2166_ymbx?f#!01PVUUynQ1f#1OkCTApC}=X$y*?
z9CJy&)oLwDlJwAQHf=7+i=y}l`{GW3uIo$q@*PH=I{~VyE`Nu~b0q-5x&rb~Ve;Gv
zfZMEsY&S}t3juJOwK(#%7XY_e2g&C+^0gL#OKNKv`PvF#yZ8OV7W}4nhWg^S6rV4Fn{_4ik2w*W0^+tO<&yl|8xo9aJ$C(agtt&QD
zs(d1mwjaRyYZg~DR{7V1t&tclj>K@6Kp+qZgfj6BOeYXEP;B)?00000NkvXXu0mjf
D*0$ME
diff --git a/app/src/main/res/drawable-mdpi/ic_action_delete.png b/app/src/main/res/drawable-mdpi/ic_action_delete.png
old mode 100644
new mode 100755
index 95258c3d0d287aa4a99cf57b769719d7de066a9b..864553a0637d42fb1fcfdf3d41b1151e535c2338
GIT binary patch
delta 230
zcmVauFx_PG<|UA{JULoV-d_MbYM_G;^#3@zBUbn+
zJ=z>V+GKpysE3rfI3eX_d?LZ!L=Iqt_tHu3)NQbTIe>o}K40Ia>Ax
zfLQ>9fiMsT!ax`Z1GNSgXg7S4e=)BGm}1xv;DB{4Ko@TqJYXVC{)HXBYXKS#U$(5|
gOIFsYVO0Q}0TP`fA#>OmW&i*H07*qoM6N<$f->x3L;wH)
delta 403
zcmV;E0c`$(0;~g&BYy#NNklA_!ajT5kK`wIB_3%>84HBP{BoS|h|FI3_OVHh5hKz|Sf)hD@+j*Yv
z5^)?KHAaBvit{~1;|t&(joz0X0p?%1hHIH4;t3QkmNi@fg#>~58U*HR6TlU_M4^R2
z^96H7e2}K;9?rFkf<2lLxC0*4@f7@4V?(v3%N#KyqS)aka{jw|AHWlKdy5@jE0_0y
zOrg&)&T)-e`+q4(;7!*9%#r;0of?>MDnxM3;C*O|5vc2W3p+YT;n@n!XCRy~
xr;#^dk|YOcaKiVWuY%tk<6Qg4r48Nq25#P3>hA3p3Jd@M002ovPDHLkV1jn!v9tgH
diff --git a/app/src/main/res/drawable-mdpi/ic_action_mark_unread.png b/app/src/main/res/drawable-mdpi/ic_action_mark_unread.png
new file mode 100644
index 0000000000000000000000000000000000000000..f74f84a9259a037b6fc5ee3aea349dc1f52e364e
GIT binary patch
literal 257
zcmV+c0sj7pP)x(8`erqZQmXkKnF7J
z)eC}Hhv2Q_Xed827xh`7<;{FQDMJ
zrGe{$XX74ozy>MFC*xp)NH2ULN=C5+I7EQo{*Z`7qP_J35O?VYq08Ei00000NkvXX
Hu0mjf{?BgO
literal 0
HcmV?d00001
diff --git a/app/src/main/res/drawable-mdpi/ic_action_placeholder.png b/app/src/main/res/drawable-mdpi/ic_action_placeholder.png
new file mode 100644
index 0000000000000000000000000000000000000000..6fd4dcd7dd3393a258d3c18c09cb4ff9d84f1d5b
GIT binary patch
literal 433
zcmV;i0Z#sjP)U*FBpwgMS`4%RK!b~bI0c9o0r3eS
zJ_E%d_A($&1>!1NS?&SEdyy=~g%1F65Vb8&Bf?^ITu3d;y^#!U1mYGvmi7Q~1rk4;
zQp#oS|li;IiBf&E=LryqO9ium^~B(Zsy5IUoZ~Q8E=B5P>FELW~1a
zsOW&GQ3s4VVAKJ`I3OKOQ4$p$5KfE(%+VAXQqcjbKztHO%o$g4Yy-q)pkf%xr-}oh
zW*Gr-DGWR(W-x#4ee}zI-;^j;^IKO0EmwQaXAn(
b5^E*^zvitJ#sOu800000NkvXXu0mjf_qV67
literal 0
HcmV?d00001
diff --git a/app/src/main/res/drawable-mdpi/ic_action_reply.png b/app/src/main/res/drawable-mdpi/ic_action_reply.png
old mode 100644
new mode 100755
index f93102a77b29c80856d49fe27ea4be564aef8399..a25803b295f16129331b38dd17b1260d13d9aad8
GIT binary patch
delta 385
zcmV-{0e=3<0-OVoB!6Q`L_t(oNA1?TN&`_4#_?Yeyj2!f+S!SvPat^ddj)6j2Z@ECdlOEJP8n3?#6|-MBf4*(L*9?GE36X1+6LYbuUf#rpaH{SKsd
zUFmMXMBJOZj1we?;W4j7~hIka-bAYUP&jA(?Pd0kifq$5HRNowLxW^4HafQzm
zQ?@zI>RwTiF$D6aE9Dsvg-L1Y)vAjUC?DNJLu
zNi258Is)cLlzIWk>qM(fIDi?<)u9@KJ2*`RXoe`eif6Hmk^0u$=ma1OQ5GO_#;}43
ztl=RGQFa8`obW`(P}>zN0{a#K^&U=tIQnFHbg
zpwB}=mebt<|NsAIG&3^`hgnWn2Y@UG274s3<#clZ)aNnimea)n`}gl>0{T1_o8>fj
z0LXG+f{VvxITU9A9heTnKz1^a4gu=1w6?b9r-sjy2w08}&wl_p&c?<@oGi;hzM;T!
zWIWlz!oq~!zQ+g+pn19^I|7*U6R70~paXgX0|U8fnh1fo1jwI?#}R%s&xZE)_I%JB
zfuYve*ti{3rjS(-0S$;Ewj6*a;v#Ggh>VQnqDxT>EC)1^)b#`Px&qa*(ycNASq8Lp
z5>R~**}kTGA7zM)y004xHArOipFsJ|k002ovPDHLkV1fcD
Bg_ZyS
diff --git a/app/src/main/res/drawable-xhdpi/ic_action_delete.png b/app/src/main/res/drawable-xhdpi/ic_action_delete.png
old mode 100644
new mode 100755
index 35c97c1364da66b6b34000dd6dbeead3527f4f81..37e9c219cb4f028f2715714dad4f178f5c726040
GIT binary patch
delta 466
zcmV;@0WJQA2I~WmBYy$1NklQ
zPBdOYsVAW(5m75?BxJb1sL1Y_f8FGsTko0K`F3{hDR#ubztO`11I1sFz^QO
z5NvS;7J+SGy0F_`fm7hVP*=2k(g5awor>beMFfNs;Hjvpf`7%e02YARKk~$huM5Th
zgm3`_jNiUz;Gv-Q&!x2hHh|UAWD{P01)P`WFo05G-FkO`ufV`(K;_NppR9HW_OFu4
z9c2Jmsmz@vyH)~a060=Mkf7aDVii&u&)Hku)+txjIs$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I>Ebe+a}*6C!1HegKa6svxEUiixqTVvGU6&anX4ZZ2b`j?t!5<6R#WqySK*gqQ%V
zZTian0I+eySe3^oCkdczcSr$1^T>%ifPH|Jp?{{jK*{iv3qmRd6vM$@o2LR`=h_17
z2bP!*ypmyR07WIV@dF9f4~I;F^$a*MX$2IOphBmOpU5a595mIY!a%o3m8}g0*vVDl
zMZ3y!cvcXkgp01-piKZSHO79f#HecWLRSY>;E%h(D`^121K4RV@X8q=;Lm!6SIPhc
zfd%i}3A{1}2>1)9@Jbj^E|(`@!Mk(=kFf(X3`4g^Bof&+O>;9Ik1ygF(!#^cU%7>M
z5I-=^GZ?dv=6__f*(u-Q^ZEQF+|;!P@c#nF{e-M5Boc`QKjClvfNzdqF!&7_v4{8L
z8GI_0nwA0HmJv^}SZv7?co^_bCitfK2#3S#{nF
zigu|y;nBI2PN(O6uMfhF91g+&NNc0jwXiT_n&z_djge$BIcHn!9^lovA#HaED>?nH
z3F5&A;!p)&k=S(}h89_0o1?f{!pCfAil?GUS|HgTZ;12<675VN`H_@Z#B!t!XqZ6S
l02YhIVzF2(7K`P({s5=M)cYxsgctw-002ovPDHLkV1n|k6zTu~
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_delete.png b/app/src/main/res/drawable-xxhdpi/ic_action_delete.png
old mode 100644
new mode 100755
index cfb99e17625e1bc3f13513ee978ca7c8ea6787a9..ef8e4bb424fe7f4ac8587f423d15167d4a64fbb6
GIT binary patch
literal 849
zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>V3zQ7aSW-5dpmb`m#CwN>-8TV
zCW3#M49$dmd3sC*m|6cHu>Wwh<YKg^EIh8J!ea4|Fz+wWj-@rb%=+`;2_e7|2=
zciH$&pPI#1|Lak;tKRz*q&LSbWij*Gz1&hT;E#Zd1B-~TM&5kRj)o+rqi>BF1p|B*
z?5I^!VCv!&*?ykI<$yiQE$2cu3*NhR!T^BA<TZ;LBQMzmQDxe
z*n9ijXxh7F?(c2cE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bH
z1;GNkEw+H}AXq?$#f@-UJpnkI$Ku(r<{-GBxWz6guATtj_n%r!z!UWZn3J;#7WRM&
zs!qz+RRn1E35q!!7Z>pKf{AtenEbREa$-23=X70f@*m?6Alo8~G
zqYU^dlM2bfF_POy7vrFf?T_`~_x91nxQ7RD5ClOG1VIo4K@bE%5CriL{s7)|T+`%{
R0IL81002ovPDHLkV1k7b8gKvr
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_mark_unread.png b/app/src/main/res/drawable-xxhdpi/ic_action_mark_unread.png
new file mode 100644
index 0000000000000000000000000000000000000000..968b84969b6cfddd35c457f341a77d6883af16a5
GIT binary patch
literal 620
zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U^4b}aSW-r^>)r_ze526Z97G!
z6xLM8#hz$#>7CB1SF-T@18Kn^PD2(Up~eY6nDzc|W{ZZJHLt1Ud
zj~tDB6CN(N`u1yKsl~JF7uG!qnZ*C&{;DT&M&1q&)2*&$9hmdU>U*BdJLalM!k&f+
z(&ooN`gb!HYrKl7F5Dv+&ATd9Ah35L$NmqY&JUxdTl?S6-LSk_SHk6v=RGBjKUwo-
zogZ>riR*XvEB%^e?5X)+vzAtpkkdo;UF*FL%#3f&rB})7|CL#P!jd&>ZdV*p|Cjk@JFsuAJjmtI+jd%PxSEpY
znxnDPL}Y7DhG}2jwF#;x|GG~3CK0dMawt8`w_?fL!-hSl^G%h-p7s~J#pGsN-|AcE
zZ1u?af7p@ht>urK&SYyUrVCyAtjzKuP5=@SNO1yWF8Bb9Ax8!#4yH{S4e~i%pV()k
d#43nW_L)tj?6Yi
z3{lS68dGxYRIZ_MPm~-_So;U;^X%t&-uLr-etDngec$K#CFVQA9+@E0^8keNSL@@#@RH<28Y+`lMQQ?^A>%LbK#gSWyiGuJ5#6MHrTQ-NdcWRZ)Wh@snI&%>>x;B@r|NpoRB#OE
zkzOLN^98)MH1o7a{>c3?z1>7d`AhgmXBMW)W)l3%=2bV$mSTGp2tN)2s5JVBz0vJ
zGj;5W^yVfR34hJld5`;^s;_}Bc%$#HT_%N-9vVLCXFxD;S6xtjahe8e&0ch+XOK>&
zish=vMH!opuPl#=DLrnSc9qQCPyfKi%F-Yy-Xn}aJ-~e=K2b_^whQFCf386l}2PBfn2CFKxDSyz#^f9dpr<
zq-KZ4m5C2Tt;uP-zM896kZ~H0s;D6rif|qe!H6YTXZ@{CGcjMOtzKJ*7<-SbjA_W#
zl#7ElvjDF@7V8A!M1>NSZCyCsTO_Fk;*73DNSv?{xsE7HV%X~fLzro2AP>03*JS|q
zB9z*P0UK6A_2x2NyWyqNQX7Qmj3LKU1u#$YotM#gR%Y&1eRl9sr6hzqv2c@ldIoZ&6_ze
zl0`I2iPe#I*q?$ADTRR<3;s`YOyxrN85La}q|_Xn64CIdyYGP$w9xWF7qAMz`D39j
z7{o6?aX7}3kD;rvjkdfRf8Hzcc38U>_=d77!jB2M8KL1@LCdnEmL--=;f&g>Z=<=Yv*hlYy6(7|kTBW*40a$AMA!gPgIQEwbC$*AWq`VM
z{Bs!-eyKoAuC0-yv73Iuw*Qkb1nFhuTk#-GClHo(P-^6LU7?F$HX=1Z6`RKfk5kl8O!J)lsGy(n;V~J`j
iv-su1boLxG{MqUxq+4w)#k(&U9E{6pH-{#BT;@OKQFf02
literal 0
HcmV?d00001
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_reply.png b/app/src/main/res/drawable-xxhdpi/ic_action_reply.png
old mode 100644
new mode 100755
index 9b6d9efdf8c8f64f5f26fcfad31d1d1f2a48b453..15a3089bef7e8cfb774de2f9521f5eee81acda66
GIT binary patch
literal 1364
zcmcIk`8(8k0RDXEV6evhgxs{QCn`-uG>$PDW=wWU3XOCPo76aFP4S&_grXR9OqONI
zlgT)CBqpC-#Y5XRWx^_qCLL6!B$D0M{s;TZ{_tMU`~LjqGZ|D}ZF6k^fNsdPpokS^
z{|kb~3O~D;?gapTbx4puix>M=^kgP2(711FlgE@WezWl^nw!vW>I8$96y3p{bT{az
z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#ryiR!9r$r(mz5yHu2sc<3>Xt?(qiXwFvMQ9tee4L
zV7GalA4|i!S2FfK3=;Dr!_}D_!b|()mw7WBJ3c|!*gxS^JX5-z56dxi0fuAg*RFOl
zTnL@}xSf;XvGMCyF5C<;ueC0IJZvLd|Kx+;7KQ`Oho#f?)|cEak!3jZr9PXTVL$U#
zM}~mM-;Xjk+;4oPz_8-u??;RW-aC{EFkJaj`;p;6`2s5rhO9sPDi}Uk2gtH8nAXMH
zF#M2R!N=4fwO?P3;SXO3JEKGIeQ|z3vjQ$}c^~Xtai4|ZdBf}jfyNw;
zzpX!TRA^`XpPKVfHo;&sQ;bowz?OKX*G=#2C#_}Jz;TDc?^dJFlK+wwJURYLwlDY5
zX5e9KcR!fL$YIBrePCMbzXkV&7(^8^R{arUl(6CLZ$5pXwJ(mRU3}m51KncR{+&B}
z`4-!am$?-xI*iX7FCW-w`RnKh_7A*281^ulMMwVJEpM&MeBqGtrfPo11;4xg+b1v}
uvWvz%hmRjOGcq}RWa;Xk&r2xB?PsVIX>YU%Fs}xd1Pq?8elF{r5}E*~Z^_^Q
literal 0
HcmV?d00001
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_reply.png b/app/src/main/res/drawable-xxxhdpi/ic_action_reply.png
new file mode 100755
index 0000000000000000000000000000000000000000..2f08cc88d29c1b6abd86c457052a15378c8b801f
GIT binary patch
literal 1929
zcmcIldpOj27ytf#b1^d*_e)GQXpBP0WsJ~}S@(Izu5}F~$|9F`WUa)ww=d-`3C*)1
zx78$ti7|>?Dz~jzxz*BO#gt@A@yqD-
z1<(N8W1<+d2~bDid>`B$(*iL~!134q`1ykZen}a!xqKrEr>>RQ9qA03u5HM2h9EI^
zyAP}ojVus+I%=@+Hie+PADR)}d6DV_(Qxm)
zO>~I@^el1~F&lH%$PNcQyW18ha};5cTqmkiCJFOp@jPqrYblcWreeQe`t_Mdiap}!
zr6N(Bpau+(R`WKyYO(Z8(X^*WfTs`4`L=KUp|*VM%xd^NeSZD+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P0uMglZk<+o^-)r0abpvK)g@r~fIogL)K-%P(af
R>XE!y;7n&YG~2V%{sTO)I`#kn
literal 0
HcmV?d00001
diff --git a/app/src/main/res/layout/fragment_subscribtions.xml b/app/src/main/res/layout/fragment_subscribtions.xml
new file mode 100644
index 0000000..cd73e5b
--- /dev/null
+++ b/app/src/main/res/layout/fragment_subscribtions.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/message.xml b/app/src/main/res/menu/message.xml
new file mode 100644
index 0000000..aee2121
--- /dev/null
+++ b/app/src/main/res/menu/message.xml
@@ -0,0 +1,25 @@
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/message_list.xml b/app/src/main/res/menu/message_list.xml
new file mode 100644
index 0000000..75f182b
--- /dev/null
+++ b/app/src/main/res/menu/message_list.xml
@@ -0,0 +1,11 @@
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index 25eeaba..552ee71 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -24,4 +24,10 @@
Identität verwalten
Abonnieren
Kontakt importieren
+ Löschen
+ Antworten
+ %d neue Nachrichten
+ Archiv
+ Papierkorb leeren
+ Als ungelesen markieren
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 9dad53f..2034dac 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -27,4 +27,7 @@
%d new messages
Reply
Delete
+ Mark unread
+ Archive
+ Empty Trash