Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DaisukeHohjoh committed Nov 17, 2023
1 parent 60144de commit 42f6722
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.location.OnNmeaMessageListener
import android.os.Build
import android.os.Bundle
import android.support.annotation.RequiresApi
import android.util.Log
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.ZonedDateTime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ class MainActivity : PluginActivity(), MediaRecorder.OnInfoListener {
when (mode) {
MODE.PREVIEW -> {
val shooting_mode: String = findViewById<Spinner>(R.id.spinner_ric_shooting_mode_preview).selectedItem.toString()
p.set(RIC_SHOOTING_MODE, shooting_mode)
p.setPreviewFrameRate(if(isLowPowerPreview) 0 else 30)
when (shooting_mode) {
"RicPreview1024" -> { p.setPreviewSize(1024, 512) }
Expand Down

0 comments on commit 42f6722

Please sign in to comment.