mirror of
				https://github.com/SimpleMobileTools/Simple-Camera.git
				synced 2025-06-27 09:02:59 +02:00 
			
		
		
		
	correction to some save folder cases
This commit is contained in:
		| @@ -17,7 +17,7 @@ class SettingsActivity : SimpleActivity() { | |||||||
|         setContentView(R.layout.activity_settings) |         setContentView(R.layout.activity_settings) | ||||||
|  |  | ||||||
|         setupDarkTheme() |         setupDarkTheme() | ||||||
|         setupUseDCIM() |         setupSavePhotosFolder() | ||||||
|         setupSound() |         setupSound() | ||||||
|         setupForceRatio() |         setupForceRatio() | ||||||
|         setupMaxPhotoResolution() |         setupMaxPhotoResolution() | ||||||
| @@ -48,7 +48,7 @@ class SettingsActivity : SimpleActivity() { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun setupUseDCIM() { |     private fun setupSavePhotosFolder() { | ||||||
|         var currPath = mConfig.savePhotosFolder |         var currPath = mConfig.savePhotosFolder | ||||||
|         settings_save_photos.text = currPath.substring(currPath.lastIndexOf("/") + 1) |         settings_save_photos.text = currPath.substring(currPath.lastIndexOf("/") + 1) | ||||||
|         settings_save_photos_holder.setOnClickListener { |         settings_save_photos_holder.setOnClickListener { | ||||||
| @@ -57,9 +57,9 @@ class SettingsActivity : SimpleActivity() { | |||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 override fun onSuccess(pickedPath: String) { |                 override fun onSuccess(pickedPath: String) { | ||||||
|                     currPath = pickedPath |                     currPath = pickedPath.trimEnd('/') | ||||||
|                     mConfig.savePhotosFolder = pickedPath |                     mConfig.savePhotosFolder = currPath | ||||||
|                     settings_save_photos.text = pickedPath.substring(pickedPath.lastIndexOf("/") + 1) |                     settings_save_photos.text = currPath.substring(currPath.lastIndexOf("/") + 1) | ||||||
|                 } |                 } | ||||||
|             }) |             }) | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user