private void addShortcut(){
Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");
// Shortcut name
shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));
shortcut.putExtra("duplicate", false); // Just create once
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- range services -}} | |
{{- if .Name | contains "sidecar" | not -}} | |
{{- $groupedServices := (service .Name | byMeta "caddy_enable") -}} | |
{{- $enabledServices := (index $groupedServices "true" ) -}} | |
{{- range $enabledServices -}} | |
{{- $vhost := index .ServiceMeta "caddy_vhost" -}} | |
{{- scratch.MapSetX "vhosts" $vhost . -}} | |
{{- end -}} | |
{{- end -}} | |
{{- end -}} |