add the Whats new dialog
This commit is contained in:
parent
0efa54ee6c
commit
862295fbba
|
@ -10,7 +10,7 @@ android {
|
||||||
applicationId "com.simplemobiletools.camera"
|
applicationId "com.simplemobiletools.camera"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
versionCode 32
|
versionCode 33
|
||||||
versionName "1.32"
|
versionName "1.32"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,10 @@ import com.simplemobiletools.camera.*
|
||||||
import com.simplemobiletools.camera.Preview.PreviewListener
|
import com.simplemobiletools.camera.Preview.PreviewListener
|
||||||
import com.simplemobiletools.camera.extensions.config
|
import com.simplemobiletools.camera.extensions.config
|
||||||
import com.simplemobiletools.camera.views.FocusRectView
|
import com.simplemobiletools.camera.views.FocusRectView
|
||||||
|
import com.simplemobiletools.commons.extensions.checkWhatsNew
|
||||||
import com.simplemobiletools.commons.extensions.hasWriteStoragePermission
|
import com.simplemobiletools.commons.extensions.hasWriteStoragePermission
|
||||||
import com.simplemobiletools.commons.extensions.toast
|
import com.simplemobiletools.commons.extensions.toast
|
||||||
|
import com.simplemobiletools.commons.models.Release
|
||||||
import kotlinx.android.synthetic.main.activity_main.*
|
import kotlinx.android.synthetic.main.activity_main.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
@ -63,8 +65,8 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
|
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
|
||||||
mRes = resources
|
mRes = resources
|
||||||
tryInitCamera()
|
tryInitCamera()
|
||||||
|
|
||||||
supportActionBar?.hide()
|
supportActionBar?.hide()
|
||||||
|
checkWhatsNewDialog()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
|
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
|
||||||
|
@ -567,4 +569,11 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onScanCompleted(path: String, uri: Uri) = setupPreviewImage(mIsInPhotoMode)
|
override fun onScanCompleted(path: String, uri: Uri) = setupPreviewImage(mIsInPhotoMode)
|
||||||
|
|
||||||
|
private fun checkWhatsNewDialog() {
|
||||||
|
arrayListOf<Release>().apply {
|
||||||
|
add(Release(33, R.string.release_33))
|
||||||
|
checkWhatsNew(this, BuildConfig.VERSION_CODE)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Release notes -->
|
||||||
|
<string name="release_33">
|
||||||
|
Added more color customization options\n
|
||||||
|
Your settings have been cleared, please reset them
|
||||||
|
</string>
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in New Issue