mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
adding a SIM card label at the call screen in case there are multiple ones
This commit is contained in:
@ -36,6 +36,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.27.23'
|
||||
implementation 'com.simplemobiletools:commons:5.27.24'
|
||||
implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a'
|
||||
}
|
||||
|
@ -145,9 +145,11 @@ class CallActivity : SimpleActivity() {
|
||||
dialpad_hashtag.setOnClickListener { dialpadPressed('#') }
|
||||
|
||||
dialpad_wrapper.setBackgroundColor(config.backgroundColor)
|
||||
arrayOf(call_toggle_microphone, call_toggle_speaker, call_dialpad, dialpad_close).forEach {
|
||||
arrayOf(call_toggle_microphone, call_toggle_speaker, call_dialpad, dialpad_close, call_sim_image).forEach {
|
||||
it.applyColorFilter(config.textColor)
|
||||
}
|
||||
|
||||
call_sim_id.setTextColor(config.textColor.getContrastColor())
|
||||
}
|
||||
|
||||
private fun dialpadPressed(char: Char) {
|
||||
|
@ -41,6 +41,33 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/caller_name_label"
|
||||
tools:text="Is Calling" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/call_sim_image"
|
||||
android:layout_width="@dimen/normal_icon_size"
|
||||
android:layout_height="0dp"
|
||||
android:alpha="0.8"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:src="@drawable/ic_sim_vector"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/call_status_label"
|
||||
app:layout_constraintEnd_toStartOf="@+id/call_status_label"
|
||||
app:layout_constraintTop_toTopOf="@+id/call_status_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/call_sim_id"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:alpha="0.8"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/md_grey_black"
|
||||
android:textSize="@dimen/bigger_text_size"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/call_sim_image"
|
||||
app:layout_constraintEnd_toEndOf="@+id/call_sim_image"
|
||||
app:layout_constraintStart_toStartOf="@+id/call_sim_image"
|
||||
app:layout_constraintTop_toTopOf="@+id/call_sim_image"
|
||||
tools:text="1" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/ongoing_call_holder"
|
||||
android:layout_width="match_parent"
|
||||
|
Reference in New Issue
Block a user