[LIME] new icons incerter
This commit is contained in:
parent
a04beb1e79
commit
04c8250738
5 changed files with 11 additions and 7 deletions
BIN
res/drawable-xhdpi/chat_secure.png
Normal file
BIN
res/drawable-xhdpi/chat_secure.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 449 B |
BIN
res/drawable-xhdpi/chat_unsecure.png
Normal file
BIN
res/drawable-xhdpi/chat_unsecure.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 298 B |
|
@ -146,7 +146,8 @@
|
|||
android:layout_alignTop="@id/background"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:paddingTop="5dp">
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="3dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/status"
|
||||
|
|
|
@ -745,6 +745,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
if(LinphoneManager.getLc().getLimeEncryption() == LinphoneCore.LinphoneLimeState.Mandatory)
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
|
@ -1048,7 +1049,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
@Override
|
||||
public void onLinphoneChatMessageStateChanged(LinphoneChatMessage msg, State state) {
|
||||
Log.e(" /////////====>> onLinphoneChatMessageStateChanged - state = "+state.toString());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1192,10 +1193,11 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
|
||||
if (status == LinphoneChatMessage.State.InProgress) {
|
||||
holder.messageSendingInProgress.setVisibility(View.VISIBLE);
|
||||
} else if (!message.isSecured() && !message.isOutgoing() &&
|
||||
LinphoneManager.getLc().getLimeEncryption() == LinphoneCore.LinphoneLimeState.Mandatory) {
|
||||
}
|
||||
if (!message.isSecured() && !message.isOutgoing() &&
|
||||
LinphoneManager.getLc().getLimeEncryption() == LinphoneCore.LinphoneLimeState.Mandatory && status != LinphoneChatMessage.State.InProgress) {
|
||||
holder.messageStatus.setVisibility(View.VISIBLE);
|
||||
holder.messageStatus.setImageResource(R.drawable.lime_ko);
|
||||
holder.messageStatus.setImageResource(R.drawable.chat_unsecure);
|
||||
}
|
||||
if(status == State.DeliveredToUser && message.isOutgoing()){
|
||||
holder.imdmLayout.setVisibility(View.VISIBLE);
|
||||
|
|
|
@ -1107,6 +1107,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
|||
LinphoneManager.getInstance().setAreDisplayAlertMessage(false);
|
||||
}
|
||||
});
|
||||
if(LinphoneManager.getLc().getLimeEncryption() == LinphoneCore.LinphoneLimeState.Mandatory)
|
||||
dialog.show();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue