mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-01-30 15:35:07 +01:00
Upgrade targetSdkVersion to 34
This API version update doesn't seem to affect this launcher that much. Only differences were signatures of these 2 methods (onFling and onDraw), but no other changes really affect this app from these lists: - https://developer.android.com/about/versions/14/behavior-changes-all - https://developer.android.com/about/versions/14/behavior-changes-14 Font scaling can go up to 200% now and it doesn't break functionality either.
This commit is contained in:
parent
73b7638a93
commit
3426fd98e3
@ -10,12 +10,12 @@ if (keystorePropertiesFile.exists()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 33
|
compileSdkVersion 34
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.simplemobiletools.launcher"
|
applicationId "com.simplemobiletools.launcher"
|
||||||
minSdkVersion 26
|
minSdkVersion 26
|
||||||
targetSdkVersion 33
|
targetSdkVersion 34
|
||||||
versionCode 8
|
versionCode 8
|
||||||
versionName "5.0.6"
|
versionName "5.0.6"
|
||||||
setProperty("archivesBaseName", "launcher")
|
setProperty("archivesBaseName", "launcher")
|
||||||
|
@ -667,7 +667,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||||||
return super.onSingleTapUp(event)
|
return super.onSingleTapUp(event)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFling(event1: MotionEvent, event2: MotionEvent, velocityX: Float, velocityY: Float): Boolean {
|
override fun onFling(event1: MotionEvent?, event2: MotionEvent, velocityX: Float, velocityY: Float): Boolean {
|
||||||
// ignore fling events just after releasing an icon from dragging
|
// ignore fling events just after releasing an icon from dragging
|
||||||
if (System.currentTimeMillis() - mLastUpEvent < 500L) {
|
if (System.currentTimeMillis() - mLastUpEvent < 500L) {
|
||||||
return true
|
return true
|
||||||
|
@ -673,11 +673,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
|||||||
private fun getFakeHeight() = height - sideMargins.top - sideMargins.bottom
|
private fun getFakeHeight() = height - sideMargins.top - sideMargins.bottom
|
||||||
|
|
||||||
@SuppressLint("DrawAllocation")
|
@SuppressLint("DrawAllocation")
|
||||||
override fun onDraw(canvas: Canvas?) {
|
override fun onDraw(canvas: Canvas) {
|
||||||
if (canvas == null) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
super.onDraw(canvas)
|
super.onDraw(canvas)
|
||||||
if (cellXCoords.isEmpty()) {
|
if (cellXCoords.isEmpty()) {
|
||||||
fillCellSizes()
|
fillCellSizes()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user