Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 1, 2024
1 parent 3a48b5b commit ecf9e73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
8 changes: 0 additions & 8 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,6 @@ dependencies {
implementation 'com.google.guava:guava:31.1-android'

implementation 'com.google.android.gms:play-services-mlkit-subject-segmentation:16.0.0-beta1'
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}

compileOnly 'org.yaml:snakeyaml:1.29'
fullImplementation 'org.yaml:snakeyaml:1.29'
Expand Down
4 changes: 1 addition & 3 deletions TMessagesProj/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</queries>


<uses-sdk tools:overrideLibrary="io.nekohasekai.ss_rust,io.nekohasekai.ssr_libev" />
<uses-sdk tools:overrideLibrary="io.nekohasekai.ss_rust,io.nekohasekai.ssr_libev,com.google.mlkit.vision.segmentation.subject" />

<supports-screens android:anyDensity="true"
android:largeScreens="true"
Expand Down Expand Up @@ -112,8 +112,6 @@

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

<uses-sdk tools:overrideLibrary="com.google.mlkit.vision.segmentation.subject"/>

<queries>
<package android:name="com.google.android.apps.maps"/>
<intent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2632,12 +2632,12 @@ public boolean onTouchEvent(MotionEvent motionEvent) {
if (!hasRecordVideo || calledRecordRunnable) {
startedDraggingX = -1;
if (hasRecordVideo && isInVideoMode) {
delegate.needStartRecordVideo(1, true, 0);
delegate.needStartRecordVideo(1, true, 0, voiceOnce ? 0x7FFFFFFF : 0);
} else {
if (recordingAudioVideo && isInScheduleMode()) {
AlertsCreator.createScheduleDatePickerDialog(parentActivity, parentFragment.getDialogId(), (notify, scheduleDate) -> MediaController.getInstance().stopRecording(1, notify, scheduleDate), () -> MediaController.getInstance().stopRecording(0, false, 0), null);
AlertsCreator.createScheduleDatePickerDialog(parentActivity, parentFragment.getDialogId(), (notify, scheduleDate) -> MediaController.getInstance().stopRecording(1, notify, scheduleDate, voiceOnce), () -> MediaController.getInstance().stopRecording(0, false, 0, voiceOnce), null);
}
MediaController.getInstance().stopRecording(isInScheduleMode() ? 3 : 1, true, 0);
MediaController.getInstance().stopRecording(isInScheduleMode() ? 3 : 1, true, 0, voiceOnce);
delegate.needStartRecordAudio(0);
}
recordingAudioVideo = false;
Expand Down

0 comments on commit ecf9e73

Please sign in to comment.