diff --git a/app/build.gradle b/app/build.gradle
index 0da584612..e03801ecd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -30,7 +30,6 @@ project.tasks['preBuild'].dependsOn 'linphoneSdkSource'
android {
namespace 'org.linphone'
compileSdk 34
- compileSdkPreview 'UpsideDownCake'
defaultConfig {
applicationId packageName
@@ -38,17 +37,24 @@ android {
targetSdk 34
versionCode 60000
versionName "6.0.0"
+ }
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ applicationVariants.configureEach { variant ->
+ variant.outputs.configureEach {
+ outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk"
+ }
}
buildTypes {
debug {
+ debuggable true
+ jniDebuggable true
+
resValue "string", "file_provider", packageName + ".fileprovider"
}
release {
- minifyEnabled false
+ minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
resValue "string", "file_provider", packageName + ".fileprovider"
diff --git a/app/src/main/java/org/linphone/ui/call/fragment/EndedCallFragment.kt b/app/src/main/java/org/linphone/ui/call/fragment/EndedCallFragment.kt
index dd77b8d6d..c78944577 100644
--- a/app/src/main/java/org/linphone/ui/call/fragment/EndedCallFragment.kt
+++ b/app/src/main/java/org/linphone/ui/call/fragment/EndedCallFragment.kt
@@ -71,7 +71,6 @@ class EndedCallFragment : GenericCallFragment() {
Log.i("$TAG Showing ended call fragment")
callViewModel.callDuration.observe(viewLifecycleOwner) { duration ->
- // TODO FIXME: doesn't work
binding.chronometer.base = SystemClock.elapsedRealtime() - (1000 * duration)
// Do not start it!
}
diff --git a/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt b/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
index 548d6369f..f0ee0b31d 100644
--- a/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
+++ b/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
@@ -877,7 +877,7 @@ class CurrentCallViewModel @UiThread constructor() : ViewModel() {
@WorkerThread
private fun canCallBePaused(): Boolean {
return ::currentCall.isInitialized && !currentCall.mediaInProgress() && when (currentCall.state) {
- Call.State.StreamsRunning, Call.State.PausedByRemote, Call.State.Paused -> true
+ Call.State.StreamsRunning, Call.State.Pausing, Call.State.Paused -> true
else -> false
}
}
diff --git a/app/src/main/res/drawable/in_call_button_background_green.xml b/app/src/main/res/drawable/in_call_button_background_green.xml
new file mode 100644
index 000000000..4f8efb4b0
--- /dev/null
+++ b/app/src/main/res/drawable/in_call_button_background_green.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/in_call_button_background.xml b/app/src/main/res/drawable/in_call_button_background_red.xml
similarity index 93%
rename from app/src/main/res/drawable/in_call_button_background.xml
rename to app/src/main/res/drawable/in_call_button_background_red.xml
index f9d61c0d2..ae3b842f9 100644
--- a/app/src/main/res/drawable/in_call_button_background.xml
+++ b/app/src/main/res/drawable/in_call_button_background_red.xml
@@ -3,7 +3,7 @@
+ android:drawable="@drawable/shape_round_in_call_selected_red_button_background" />
-
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/shape_round_in_call_selected_button_background.xml b/app/src/main/res/drawable/shape_round_in_call_selected_red_button_background.xml
similarity index 100%
rename from app/src/main/res/drawable/shape_round_in_call_selected_button_background.xml
rename to app/src/main/res/drawable/shape_round_in_call_selected_red_button_background.xml
diff --git a/app/src/main/res/layout-land/call_actions_bottom_sheet.xml b/app/src/main/res/layout-land/call_actions_bottom_sheet.xml
index 1ec726828..cea4f8841 100644
--- a/app/src/main/res/layout-land/call_actions_bottom_sheet.xml
+++ b/app/src/main/res/layout-land/call_actions_bottom_sheet.xml
@@ -46,7 +46,7 @@
android:layout_width="0dp"
android:layout_height="@dimen/call_button_size"
android:layout_marginTop="@dimen/call_extra_button_top_margin"
- android:background="@drawable/in_call_button_background"
+ android:background="@drawable/in_call_button_background_red"
android:padding="@dimen/call_button_icon_padding"
android:src="@drawable/transfer"
app:layout_constraintDimensionRatio="1:1"
@@ -61,7 +61,7 @@
android:layout_width="0dp"
android:layout_height="@dimen/call_button_size"
android:layout_marginTop="@dimen/call_extra_button_top_margin"
- android:background="@drawable/in_call_button_background"
+ android:background="@drawable/in_call_button_background_red"
android:padding="@dimen/call_button_icon_padding"
android:src="@drawable/phone_plus"
app:layout_constraintDimensionRatio="1:1"
@@ -76,7 +76,7 @@
android:layout_width="0dp"
android:layout_height="@dimen/call_button_size"
android:layout_marginTop="@dimen/call_extra_button_top_margin"
- android:background="@drawable/in_call_button_background"
+ android:background="@drawable/in_call_button_background_red"
android:padding="@dimen/call_button_icon_padding"
android:src="@drawable/calls_list"
app:layout_constraintDimensionRatio="1:1"
@@ -106,10 +106,11 @@
32sp
- center
- 3dp
- - @drawable/in_call_button_background
+ - @drawable/in_call_button_background_red