mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +01:00
Bugfixes
+ Show only apps and no other intents in the list choosable as an action ('view' rather than 'pick') + Change text for 'other' intents (+="Launcher ")
This commit is contained in:
parent
193df99624
commit
f6fdd70995
2 changed files with 7 additions and 3 deletions
|
@ -50,8 +50,8 @@ class OtherRecyclerAdapter(val activity: Activity):
|
||||||
|
|
||||||
init {
|
init {
|
||||||
othersList = ArrayList()
|
othersList = ArrayList()
|
||||||
othersList.add(OtherInfo("Settings", "launcher:settings"))
|
othersList.add(OtherInfo("Launcher Settings", "launcher:settings"))
|
||||||
othersList.add(OtherInfo("AppsList", "launcher:choose"))
|
othersList.add(OtherInfo("Launcher AppsList", "launcher:choose"))
|
||||||
}
|
}
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
|
@ -21,6 +21,7 @@ import androidx.core.content.ContextCompat.startActivity
|
||||||
import com.finnmglas.launcher.ChooseActivity
|
import com.finnmglas.launcher.ChooseActivity
|
||||||
import com.finnmglas.launcher.R
|
import com.finnmglas.launcher.R
|
||||||
import com.finnmglas.launcher.SettingsActivity
|
import com.finnmglas.launcher.SettingsActivity
|
||||||
|
import com.finnmglas.launcher.intendedSettingsPause
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
|
|
||||||
|
@ -222,7 +223,10 @@ fun openSettings(activity: Activity){
|
||||||
}
|
}
|
||||||
|
|
||||||
fun openAppsList(activity: Activity){
|
fun openAppsList(activity: Activity){
|
||||||
activity.startActivity(Intent(activity, ChooseActivity::class.java))
|
val intent = Intent(activity, ChooseActivity::class.java)
|
||||||
|
intent.putExtra("action", "view")
|
||||||
|
intendedSettingsPause = true
|
||||||
|
activity.startActivity(intent)
|
||||||
activity.overridePendingTransition(R.anim.bottom_up, android.R.anim.fade_out)
|
activity.overridePendingTransition(R.anim.bottom_up, android.R.anim.fade_out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue