mirror of
				https://github.com/SimpleMobileTools/Simple-File-Manager.git
				synced 2025-06-05 22:09:15 +02:00 
			
		
		
		
	adding release notes
This commit is contained in:
		@@ -14,6 +14,7 @@ import com.simplemobiletools.commons.extensions.*
 | 
			
		||||
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
 | 
			
		||||
import com.simplemobiletools.commons.helpers.LICENSE_MULTISELECT
 | 
			
		||||
import com.simplemobiletools.commons.models.FileDirItem
 | 
			
		||||
import com.simplemobiletools.commons.models.Release
 | 
			
		||||
import com.simplemobiletools.commons.views.Breadcrumbs
 | 
			
		||||
import com.simplemobiletools.filemanager.BuildConfig
 | 
			
		||||
import com.simplemobiletools.filemanager.PATH
 | 
			
		||||
@@ -57,6 +58,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
 | 
			
		||||
    private fun tryInitFileManager() {
 | 
			
		||||
        if (hasWriteStoragePermission()) {
 | 
			
		||||
            initRootFileManager()
 | 
			
		||||
            checkWhatsNewDialog()
 | 
			
		||||
        } else {
 | 
			
		||||
            ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), STORAGE_PERMISSION)
 | 
			
		||||
        }
 | 
			
		||||
@@ -152,4 +154,11 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
 | 
			
		||||
        mBasePath = pickedPath
 | 
			
		||||
        openPath(pickedPath)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun checkWhatsNewDialog() {
 | 
			
		||||
        arrayListOf<Release>().apply {
 | 
			
		||||
            add(Release(26, R.string.release_26))
 | 
			
		||||
            checkWhatsNew(this, BuildConfig.VERSION_CODE)
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								app/src/main/res/values/donottranslate.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/src/main/res/values/donottranslate.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<resources>
 | 
			
		||||
 | 
			
		||||
    <!-- Release notes -->
 | 
			
		||||
    <string name="release_26">Added color customization</string>
 | 
			
		||||
 | 
			
		||||
</resources>
 | 
			
		||||
		Reference in New Issue
	
	Block a user