mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
Merge pull request #41 from finnmglas/feature/select-actions
Feature/select actions 2
This commit is contained in:
commit
41ace0a30b
2 changed files with 6 additions and 3 deletions
|
@ -176,7 +176,8 @@ class MainActivity : AppCompatActivity(),
|
|||
}
|
||||
|
||||
override fun onLongPress(event: MotionEvent) {
|
||||
launchApp(longClickApp, this)
|
||||
if(longClickApp != "") launchApp(longClickApp, this)
|
||||
else openSettings()
|
||||
}
|
||||
|
||||
override fun onDoubleTap(event: MotionEvent): Boolean {
|
||||
|
|
|
@ -62,7 +62,8 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
|||
viewHolder.removeAction.visibility = View.GONE
|
||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||
viewHolder.chooseButton.setOnClickListener{ chooseApp(actionName.toString()) }
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
if (getSavedTheme(activity) =="custom")
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
}
|
||||
|
||||
} catch (e : Exception) {
|
||||
|
@ -70,7 +71,8 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
|||
viewHolder.removeAction.visibility = View.GONE
|
||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||
viewHolder.chooseButton.setOnClickListener{ chooseApp(actionName.toString()) }
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
if (getSavedTheme(activity) =="custom")
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue