Commit 24ce10a1 authored by narinder Rana's avatar narinder Rana
Browse files

Update Toast to Log

parent e4961ec5
Pipeline #178226 failed with stage
in 4 minutes and 28 seconds
......@@ -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;
});
......
......@@ -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>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment