Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
24ce10a1
Commit
24ce10a1
authored
Apr 14, 2022
by
narinder Rana
Browse files
Update Toast to Log
parent
e4961ec5
Pipeline
#178226
failed with stage
in 4 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/blisslauncher/features/widgets/WidgetViewBuilder.java
View file @
24ce10a1
...
...
@@ -4,6 +4,7 @@ import android.appwidget.AppWidgetManager;
import
android.appwidget.AppWidgetProviderInfo
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.widget.LinearLayout
;
import
android.widget.Toast
;
...
...
@@ -16,8 +17,10 @@ import foundation.e.blisslauncher.features.launcher.LauncherActivity;
public
class
WidgetViewBuilder
{
private
static
final
String
TAG
=
"WidgetViewBuilder"
;
public
static
RoundedWidgetView
create
(
LauncherActivity
launcherActivity
,
@NonNull
RoundedWidgetView
roundedWidgetView
)
{
@NonNull
RoundedWidgetView
roundedWidgetView
)
{
if
(
BlissLauncher
.
getApplication
(
launcherActivity
).
getAppWidgetHost
()
==
null
)
return
null
;
roundedWidgetView
.
post
(()
->
updateWidgetOption
(
launcherActivity
,
roundedWidgetView
,
roundedWidgetView
.
getAppWidgetInfo
()));
...
...
@@ -35,8 +38,7 @@ public class WidgetViewBuilder {
==
AppWidgetProviderInfo
.
RESIZE_VERTICAL
)
{
launcherActivity
.
showWidgetResizeContainer
(
roundedWidgetView
);
}
else
{
Toast
.
makeText
(
launcherActivity
,
"Widget is not resizable"
,
Toast
.
LENGTH_SHORT
).
show
();
Log
.
i
(
TAG
,
launcherActivity
.
getString
(
R
.
string
.
widget_is_not_resizable
));
}
return
true
;
});
...
...
app/src/main/res/values/strings.xml
View file @
24ce10a1
...
...
@@ -176,4 +176,5 @@
<string
name=
"widgets"
>
Widgets
</string>
<string
name=
"uninstall_shortcut_dialog"
>
Do you want to uninstall this shortcut?
</string>
<string
name=
"ok"
>
ok
</string>
<string
name=
"widget_is_not_resizable"
>
Widget is not resizable
</string>
</resources>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment