mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	update commons, kotlin, gradle
This commit is contained in:
		| @@ -46,7 +46,7 @@ ext { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'com.simplemobiletools:commons:2.41.5' |     implementation 'com.simplemobiletools:commons:3.0.0' | ||||||
|  |  | ||||||
|     debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" |     debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" | ||||||
|     releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" |     releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" | ||||||
|   | |||||||
| @@ -1,7 +1,8 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|           xmlns:tools="http://schemas.android.com/tools" |           xmlns:tools="http://schemas.android.com/tools" | ||||||
|           package="com.simplemobiletools.camera"> |           package="com.simplemobiletools.camera" | ||||||
|  |           android:installLocation="auto"> | ||||||
|  |  | ||||||
|     <uses-feature |     <uses-feature | ||||||
|         android:name="android.hardware.camera" |         android:name="android.hardware.camera" | ||||||
|   | |||||||
| @@ -256,8 +256,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan | |||||||
|                 try { |                 try { | ||||||
|                     mParameters!!.zoom = newZoomFactor |                     mParameters!!.zoom = newZoomFactor | ||||||
|                 } catch (ignored: Exception) { |                 } catch (ignored: Exception) { | ||||||
|                 } |  | ||||||
|                     mCamera?.parameters = mParameters |                     mCamera?.parameters = mParameters | ||||||
|  |                 } | ||||||
|                 return true |                 return true | ||||||
|             } |             } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -53,6 +53,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave | |||||||
|  |  | ||||||
|     override fun onCreate(savedInstanceState: Bundle?) { |     override fun onCreate(savedInstanceState: Bundle?) { | ||||||
|         super.onCreate(savedInstanceState) |         super.onCreate(savedInstanceState) | ||||||
|  |         setTheme(R.style.FullScreenTheme) | ||||||
|         requestWindowFeature(Window.FEATURE_NO_TITLE) |         requestWindowFeature(Window.FEATURE_NO_TITLE) | ||||||
|         window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) |         window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) | ||||||
|         if (config.alwaysOpenBackCamera) |         if (config.alwaysOpenBackCamera) | ||||||
| @@ -68,6 +69,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave | |||||||
|  |  | ||||||
|     override fun onResume() { |     override fun onResume() { | ||||||
|         super.onResume() |         super.onResume() | ||||||
|  |         setTheme(R.style.FullScreenTheme) | ||||||
|         if (hasStorageAndCameraPermissions()) { |         if (hasStorageAndCameraPermissions()) { | ||||||
|             resumeCameraItems() |             resumeCameraItems() | ||||||
|             setupPreviewImage(mIsInPhotoMode) |             setupPreviewImage(mIsInPhotoMode) | ||||||
|   | |||||||
| @@ -1,12 +1,10 @@ | |||||||
| package com.simplemobiletools.camera.activities | package com.simplemobiletools.camera.activities | ||||||
|  |  | ||||||
| import android.content.Intent | import android.content.Intent | ||||||
| import android.os.Bundle | import com.simplemobiletools.commons.activities.BaseSplashActivity | ||||||
| import com.simplemobiletools.commons.activities.BaseSimpleActivity |  | ||||||
|  |  | ||||||
| open class SplashActivity : BaseSimpleActivity() { | class SplashActivity : BaseSplashActivity() { | ||||||
|     override fun onCreate(savedInstanceState: Bundle?) { |     override fun initActivity() { | ||||||
|         super.onCreate(savedInstanceState) |  | ||||||
|         startActivity(Intent(this, MainActivity::class.java)) |         startActivity(Intent(this, MainActivity::class.java)) | ||||||
|         finish() |         finish() | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||||||
|  |  | ||||||
| buildscript { | buildscript { | ||||||
|     ext.kotlin_version = '1.1.60' |     ext.kotlin_version = '1.2.0' | ||||||
|  |  | ||||||
|     repositories { |     repositories { | ||||||
|         jcenter() |         jcenter() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user