aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
authorMarvin Borner2018-09-02 02:01:27 +0200
committerMarvin Borner2018-09-02 02:01:27 +0200
commitc758e977ed96cf1c4b2bce6f09775ea8401dd4c1 (patch)
tree1d1a2e2507f17ee8706517c1146073d4d3c9eff7 /app/src/main
parentb95583df09ebe117753e61d9ccc540365ca31f13 (diff)
Found disadvantage of VIDEO: Decreased sharpness -> remove
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/AndroidManifest.xml2
-rw-r--r--app/src/main/java/me/texx/Texx/CameraActivity.kt4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 927f6b1..f2882db 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -3,7 +3,6 @@
xmlns:tools="http://schemas.android.com/tools"
package="me.texx.Texx">
- <!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
@@ -12,6 +11,7 @@
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:name=".Application"
diff --git a/app/src/main/java/me/texx/Texx/CameraActivity.kt b/app/src/main/java/me/texx/Texx/CameraActivity.kt
index eaf0333..da1fc41 100644
--- a/app/src/main/java/me/texx/Texx/CameraActivity.kt
+++ b/app/src/main/java/me/texx/Texx/CameraActivity.kt
@@ -47,7 +47,7 @@ class CameraActivity : AppCompatActivity() {
}
private fun initCameraLayout() {
- camera.sessionType = SessionType.VIDEO // TODO: Find out why VIDEO is faster (-> any disadvantages?)
+ camera.sessionType = SessionType.PICTURE
setGestures()
setListeners()
}
@@ -79,7 +79,7 @@ class CameraActivity : AppCompatActivity() {
videoButtonDrawable.colorFilter = PorterDuffColorFilter(RED, PorterDuff.Mode.SRC_IN)
camera_button.setBackgroundDrawable(videoButtonDrawable)
} else {
- //camera.sessionType = SessionType.PICTURE // -> faster?
+ camera.sessionType = SessionType.PICTURE
camera_button.setBackgroundDrawable(this.resources.getDrawable(R.drawable.focus_marker_outline))
}
true