Skip to content

Commit 385a7c6

Browse files
committed
do not show shortcuts until implemented properley
1 parent aafff99 commit 385a7c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
66-
implementation 'com.github.SimpleMobileTools:Simple-Commons:f74a128e2e'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:1d9fc3fd29'
6767

6868
kapt "androidx.room:room-compiler:2.4.3"
6969
implementation "androidx.room:room-runtime:2.4.3"

app/src/main/kotlin/com/simplemobiletools/launcher/fragments/WidgetsFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
106106
}
107107

108108
// show also the widgets that are technically shortcuts
109-
val intent = Intent(Intent.ACTION_CREATE_SHORTCUT, null)
109+
/*val intent = Intent(Intent.ACTION_CREATE_SHORTCUT, null)
110110
val list = packageManager.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED)
111111
for (info in list) {
112112
val componentInfo = info.activityInfo.applicationInfo
@@ -118,7 +118,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
118118
val widgetPreviewImage = packageManager.getDrawable(componentInfo.packageName, info.iconResource, componentInfo)
119119
val widget = AppWidget(appPackageName, appTitle, appIcon, widgetTitle, widgetPreviewImage, 0, 0, true, "", null)
120120
appWidgets.add(widget)
121-
}
121+
}*/
122122

123123
appWidgets = appWidgets.sortedWith(compareBy({ it.appTitle }, { it.appPackageName }, { it.widgetTitle })).toMutableList() as ArrayList<AppWidget>
124124
splitWidgetsByApps(appWidgets)

0 commit comments

Comments
 (0)