mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-01-30 07:26:23 +01:00
Merge pull request #99 from esensar/sdk-34-migration
Upgrade targetSdkVersion to 34
This commit is contained in:
commit
308d9841eb
@ -10,12 +10,12 @@ if (keystorePropertiesFile.exists()) {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
compileSdkVersion 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.simplemobiletools.launcher"
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
versionCode 8
|
||||
versionName "5.0.6"
|
||||
setProperty("archivesBaseName", "launcher")
|
||||
|
@ -667,7 +667,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
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
|
||||
if (System.currentTimeMillis() - mLastUpEvent < 500L) {
|
||||
return true
|
||||
|
@ -673,11 +673,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||
private fun getFakeHeight() = height - sideMargins.top - sideMargins.bottom
|
||||
|
||||
@SuppressLint("DrawAllocation")
|
||||
override fun onDraw(canvas: Canvas?) {
|
||||
if (canvas == null) {
|
||||
return
|
||||
}
|
||||
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
super.onDraw(canvas)
|
||||
if (cellXCoords.isEmpty()) {
|
||||
fillCellSizes()
|
||||
|
Loading…
x
Reference in New Issue
Block a user