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