diff --git a/MessengerProj/src/main/java/com/b44t/messenger/NotificationsController.java b/MessengerProj/src/main/java/com/b44t/messenger/NotificationsController.java
index db15a2d57..31fa2adde 100644
--- a/MessengerProj/src/main/java/com/b44t/messenger/NotificationsController.java
+++ b/MessengerProj/src/main/java/com/b44t/messenger/NotificationsController.java
@@ -1331,11 +1331,11 @@ public class NotificationsController {
}
}
}
- } else {
+ } /*else {
if (pushDialogs.size() == 1) {
intent.putExtra("encId", (int) (dialog_id >> 32));
}
- }
+ }*/
PendingIntent contentIntent = PendingIntent.getActivity(ApplicationLoader.applicationContext, 0, intent, PendingIntent.FLAG_ONE_SHOT);
String name;
diff --git a/MessengerProj/src/main/java/com/b44t/ui/ChatActivity.java b/MessengerProj/src/main/java/com/b44t/ui/ChatActivity.java
index 14abda6a2..9cf1db212 100644
--- a/MessengerProj/src/main/java/com/b44t/ui/ChatActivity.java
+++ b/MessengerProj/src/main/java/com/b44t/ui/ChatActivity.java
@@ -167,7 +167,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
private RecyclerListView.OnItemClickListener mentionsOnItemClickListener;
private StickersAdapter stickersAdapter;
private FrameLayout stickersPanel;
- private TextView muteItem;
+ private TextView muteMenuEntry;
private boolean m_canMute;
private FrameLayout pagedownButton;
private boolean pagedownButtonShowedByScroll;
@@ -295,7 +295,6 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
private final static int id_forward = 11;
private final static int id_delete_messages = 12;
private final static int chat_menu_attach = 14;
- //private final static int clear_history = 15;
private final static int id_delete_chat = 16;
private final static int mute = 18;
private final static int id_reply = 19;
@@ -682,7 +681,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
*/
actionBar.hideActionMode();
updateVisibleRows();
- } else if (/*id == clear_history ||*/ id == id_delete_chat) {
+ } else if ( id == id_delete_chat) {
// as the history may be a mix of messenger-messages and e-mails, it is not safe to delete it.
// the user can delete explicit messages or use his e-mail programm to delete masses.
if (getParentActivity() == null) {
@@ -690,27 +689,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
}
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
-
- String messageText;
- /*
- int totalMessagesCount = MrMailbox.MrChatGetTotalMsgCount(m_hChat);
- String messageText = LocaleController.formatString("AreYouSureDeleteMessages", R.string.AreYouSureDeleteMessages, LocaleController.formatPluralString("messages", totalMessagesCount));
- */
-
- /*if (id == clear_history) {
- builder.setTitle(LocaleController.getString("ClearHistory", R.string.ClearHistory));
- } else */ {
- if (MrMailbox.MrChatGetType(m_hChat)==MrMailbox.MR_CHAT_GROUP) {
- builder.setTitle(LocaleController.getString("DeleteAndExit", R.string.DeleteAndExit));
- messageText = /*"- " + messageText + "\n\n - " +*/ LocaleController.getString("AreYouSureDeleteAndExit", R.string.AreYouSureDeleteAndExit);
- } else {
- builder.setTitle(LocaleController.getString("DeleteChat", R.string.DeleteChat));
- messageText = /*"- " + messageText + "\n\n- " +*/ LocaleController.getString("AreYouSureDeleteThisChat", R.string.AreYouSureDeleteThisChat);
- }
- }
-
- builder.setMessage(messageText);
-
+ builder.setMessage(LocaleController.getString("AreYouSureDeleteThisChat", R.string.AreYouSureDeleteThisChat));
builder.setPositiveButton(LocaleController.getString("OK", R.string.OK), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
@@ -858,11 +837,9 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
}
if( m_canMute ) {
- muteItem = headerItem.addSubItem(mute, null, 0);
+ muteMenuEntry = headerItem.addSubItem(mute, null, 0);
}
- //headerItem.addSubItem(clear_history, LocaleController.getString("ClearHistory", R.string.ClearHistory), 0);
-
if( !isChatWithDeaddrop ) {
if (MrMailbox.MrChatGetType(m_hChat) == MrMailbox.MR_CHAT_GROUP) {
headerItem.addSubItem(id_delete_chat, LocaleController.getString("DeleteAndExit", R.string.DeleteAndExit), 0);
@@ -3293,12 +3270,12 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
rightIcon = R.drawable.mute_fixed;
}
- avatarContainer.setTitleIcons(currentEncryptedChat != null ? R.drawable.ic_lock_header : 0, rightIcon);
- if( muteItem != null ) {
+ avatarContainer.setTitleIcons(0, rightIcon);
+ if( muteMenuEntry != null ) {
if (rightIcon != 0) {
- muteItem.setText(LocaleController.getString("UnmuteNotifications", R.string.UnmuteNotifications));
+ muteMenuEntry.setText(LocaleController.getString("UnmuteNotifications", R.string.UnmuteNotifications));
} else {
- muteItem.setText(LocaleController.getString("MuteNotifications", R.string.MuteNotifications));
+ muteMenuEntry.setText(LocaleController.getString("MuteNotifications", R.string.MuteNotifications));
}
}
}
@@ -4804,20 +4781,13 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
}
}
- private void updateBottomOverlay() { // the bottom overlay is also used for going through search results
+ private void updateBottomOverlay() {
+ // the bottom overlay is also used for going through search results, however, it would be nicer to add the button [^] [v] to the actionbar
+ // moreover, we ouse the bottom overlay for the "dead drop chat"
if (bottomOverlayChatText == null) {
return;
}
- if (currentChat != null) {
- bottomOverlayChatText.setText(LocaleController.getString("DeleteThisGroup", R.string.DeleteThisGroup));
- } else {
- if (userBlocked) {
- bottomOverlayChatText.setText(LocaleController.getString("UnblockContact", R.string.UnblockContact));
- }
- else {
- bottomOverlayChatText.setText(LocaleController.getString("DeleteThisChat", R.string.DeleteThisChat));
- }
- }
+ bottomOverlayChatText.setText("");
if (searchItem != null && searchItem.getVisibility() == View.VISIBLE) {
searchContainer.setVisibility(View.VISIBLE);
@@ -4829,8 +4799,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (currentChat != null && (ChatObject.isNotInChat(currentChat) || !ChatObject.canWriteToChat(currentChat)) ||
currentUser != null && (UserObject.isDeleted(currentUser) || userBlocked)) {
bottomOverlayChat.setVisibility(View.VISIBLE);
- if (muteItem!=null){
- muteItem.setVisibility(View.GONE);
+ if (muteMenuEntry !=null){
+ muteMenuEntry.setVisibility(View.GONE);
}
chatActivityEnterView.setFieldFocused(false);
chatActivityEnterView.setVisibility(View.INVISIBLE);
@@ -4848,8 +4818,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
chatActivityEnterView.setVisibility(View.VISIBLE);
bottomOverlayChat.setVisibility(View.INVISIBLE);
}
- if(muteItem!=null) {
- muteItem.setVisibility(View.VISIBLE);
+ if(muteMenuEntry !=null) {
+ muteMenuEntry.setVisibility(View.VISIBLE);
}
}
}
diff --git a/MessengerProj/src/main/java/com/b44t/ui/PopupNotificationActivity.java b/MessengerProj/src/main/java/com/b44t/ui/PopupNotificationActivity.java
index 6c5315794..1165ba7a2 100644
--- a/MessengerProj/src/main/java/com/b44t/ui/PopupNotificationActivity.java
+++ b/MessengerProj/src/main/java/com/b44t/ui/PopupNotificationActivity.java
@@ -969,9 +969,9 @@ public class PopupNotificationActivity extends Activity implements NotificationC
} else {
intent.putExtra("userId", lower_id);
}
- } else {
+ } /*else {
intent.putExtra("encId", (int)(dialog_id >> 32));
- }
+ } */
intent.setAction("com.b44t.messenger.openchat" + Math.random() + Integer.MAX_VALUE);
intent.setFlags(0x00008000);
startActivity(intent);
@@ -1007,10 +1007,10 @@ public class PopupNotificationActivity extends Activity implements NotificationC
nameTextView.setCompoundDrawablePadding(0);
} else if (currentUser != null) {
nameTextView.setText(UserObject.getUserName(currentUser));
- if ((int)dialog_id == 0) {
+ /*if ((int)dialog_id == 0) {
nameTextView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_lock_white, 0, 0, 0);
nameTextView.setCompoundDrawablePadding(AndroidUtilities.dp(4));
- } else {
+ } else*/ {
nameTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
nameTextView.setCompoundDrawablePadding(0);
}
diff --git a/MessengerProj/src/main/res/drawable-hdpi/ic_lock_header.png b/MessengerProj/src/main/res/drawable-hdpi/ic_lock_header.png
deleted file mode 100755
index 07be8fc72..000000000
Binary files a/MessengerProj/src/main/res/drawable-hdpi/ic_lock_header.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-hdpi/ic_lock_white.png b/MessengerProj/src/main/res/drawable-hdpi/ic_lock_white.png
deleted file mode 100644
index f1d8caecd..000000000
Binary files a/MessengerProj/src/main/res/drawable-hdpi/ic_lock_white.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-mdpi/ic_lock_header.png b/MessengerProj/src/main/res/drawable-mdpi/ic_lock_header.png
deleted file mode 100755
index a414a87ae..000000000
Binary files a/MessengerProj/src/main/res/drawable-mdpi/ic_lock_header.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-mdpi/ic_lock_white.png b/MessengerProj/src/main/res/drawable-mdpi/ic_lock_white.png
deleted file mode 100644
index 15894766f..000000000
Binary files a/MessengerProj/src/main/res/drawable-mdpi/ic_lock_white.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_header.png b/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_header.png
deleted file mode 100755
index 33d6d9b7f..000000000
Binary files a/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_header.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_white.png b/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_white.png
deleted file mode 100644
index fa9e9e3d2..000000000
Binary files a/MessengerProj/src/main/res/drawable-xhdpi/ic_lock_white.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_header.png b/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_header.png
deleted file mode 100755
index 6e5af9ac7..000000000
Binary files a/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_header.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_white.png b/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_white.png
deleted file mode 100644
index 6767c995d..000000000
Binary files a/MessengerProj/src/main/res/drawable-xxhdpi/ic_lock_white.png and /dev/null differ
diff --git a/MessengerProj/src/main/res/values-de/strings.xml b/MessengerProj/src/main/res/values-de/strings.xml
index 44ae3f049..72e08690b 100644
--- a/MessengerProj/src/main/res/values-de/strings.xml
+++ b/MessengerProj/src/main/res/values-de/strings.xml
@@ -506,7 +506,7 @@
Nachricht an %1$s senden?
Kontakt senden an %1$s?
Gruppe verlassen? Es werden dann keine Nachrichten dieser Gruppe mehr empfangen.
- Chat löschen? Der Chat wird dann nicht mehr in der Chatliste angezeigt.
+ Chat löschen? Der Chat wird dann nicht mehr in der Chatliste angezeigt, die Nachrichten verbleiben auf dem Server.
Deinen Standort teilen?
Teilt deinen aktuellen Standort mit dem Bot.
App kann deinen aktuellen Standort nicht bestimmen
diff --git a/MessengerProj/src/main/res/values/strings.xml b/MessengerProj/src/main/res/values/strings.xml
index c53b42202..dad54bb8d 100644
--- a/MessengerProj/src/main/res/values/strings.xml
+++ b/MessengerProj/src/main/res/values/strings.xml
@@ -506,7 +506,7 @@
Send messages to %1$s?
Send contact to %1$s?
Leave the group? You will no longer receive messages from the group.
- Delete this chat? The chat will no longer be shown in the chat list.
+ Delete this chat? The chat will no longer be shown in the chat list, the messages will stay on the server.
Share your location?
This will send your current location to the bot.
App was unable to determine your current location