mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	updating commons
This commit is contained in:
		| @@ -56,7 +56,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'com.github.SimpleMobileTools:Simple-Commons:99a97f2e16' |     implementation 'com.github.SimpleMobileTools:Simple-Commons:d5e1100f27' | ||||||
|     implementation 'androidx.documentfile:documentfile:1.0.1' |     implementation 'androidx.documentfile:documentfile:1.0.1' | ||||||
|     implementation "androidx.exifinterface:exifinterface:1.3.3" |     implementation "androidx.exifinterface:exifinterface:1.3.3" | ||||||
| } | } | ||||||
|   | |||||||
| @@ -70,7 +70,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener { | |||||||
|             resumeCameraItems() |             resumeCameraItems() | ||||||
|             setupPreviewImage(mIsInPhotoMode) |             setupPreviewImage(mIsInPhotoMode) | ||||||
|             scheduleFadeOut() |             scheduleFadeOut() | ||||||
|             mFocusCircleView.setStrokeColor(getAdjustedPrimaryColor()) |             mFocusCircleView.setStrokeColor(getProperPrimaryColor()) | ||||||
|  |  | ||||||
|             if (mIsVideoCaptureIntent && mIsInPhotoMode) { |             if (mIsVideoCaptureIntent && mIsInPhotoMode) { | ||||||
|                 handleTogglePhotoVideo() |                 handleTogglePhotoVideo() | ||||||
|   | |||||||
| @@ -57,9 +57,9 @@ class SettingsActivity : SimpleActivity() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun setupSectionColors() { |     private fun setupSectionColors() { | ||||||
|         val adjustedPrimaryColor = getAdjustedPrimaryColor() |         val properPrimaryColor = getProperPrimaryColor() | ||||||
|         arrayListOf(shutter_label, startup_label, saving_label).forEach { |         arrayListOf(shutter_label, startup_label, saving_label).forEach { | ||||||
|             it.setTextColor(adjustedPrimaryColor) |             it.setTextColor(properPrimaryColor) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,6 +6,7 @@ import android.graphics.Paint | |||||||
| import android.os.Handler | import android.os.Handler | ||||||
| import android.view.ViewGroup | import android.view.ViewGroup | ||||||
| import com.simplemobiletools.camera.extensions.config | import com.simplemobiletools.camera.extensions.config | ||||||
|  | import com.simplemobiletools.commons.extensions.getProperPrimaryColor | ||||||
|  |  | ||||||
| class FocusCircleView(context: Context) : ViewGroup(context) { | class FocusCircleView(context: Context) : ViewGroup(context) { | ||||||
|     private val CIRCLE_RADIUS = 50f |     private val CIRCLE_RADIUS = 50f | ||||||
| @@ -22,7 +23,7 @@ class FocusCircleView(context: Context) : ViewGroup(context) { | |||||||
|         mHandler = Handler() |         mHandler = Handler() | ||||||
|         mPaint = Paint().apply { |         mPaint = Paint().apply { | ||||||
|             style = Paint.Style.STROKE |             style = Paint.Style.STROKE | ||||||
|             color = context.config.primaryColor |             color = context.getProperPrimaryColor() | ||||||
|             strokeWidth = 2f |             strokeWidth = 2f | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user