mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-03-04 11:28:07 +01:00
updating commons
This commit is contained in:
parent
2d4d84160b
commit
d413d4eae1
@ -62,7 +62,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:6674d0167a'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:178537ae0d'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
}
|
||||
|
||||
private fun launchSettings() {
|
||||
hideKeyboard()
|
||||
startActivity(Intent(applicationContext, SettingsActivity::class.java))
|
||||
}
|
||||
|
||||
@ -126,6 +127,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
launchers.sort()
|
||||
|
||||
LaunchersAdapter(this, launchers, this, launchers_grid) {
|
||||
hideKeyboard()
|
||||
val launchIntent = packageManager.getLaunchIntentForPackage((it as AppLauncher).packageName)
|
||||
if (launchIntent != null) {
|
||||
try {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.simplemobiletools.applauncher.adapters
|
||||
|
||||
import android.view.Menu
|
||||
import android.view.MotionEvent
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@ -24,7 +25,6 @@ import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||
import com.simplemobiletools.commons.interfaces.StartReorderDragListener
|
||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||
import com.simplemobiletools.commons.views.bottomactionmenu.BottomActionMenuView
|
||||
import kotlinx.android.synthetic.main.item_app_launcher.view.*
|
||||
import java.util.*
|
||||
import kotlin.collections.ArrayList
|
||||
@ -52,8 +52,8 @@ class LaunchersAdapter(
|
||||
|
||||
override fun getActionMenuId() = R.menu.cab
|
||||
|
||||
override fun onBottomActionMenuCreated(view: BottomActionMenuView) {
|
||||
view.toggleItemVisibility(R.id.cab_edit, isOneItemSelected())
|
||||
override fun prepareActionMode(menu: Menu) {
|
||||
menu.findItem(R.id.cab_edit).isVisible = isOneItemSelected()
|
||||
}
|
||||
|
||||
override fun actionItemPressed(id: Int) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user