Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
308284dd
Commit
308284dd
authored
Sep 03, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IOS-260: remove smart text from widget updated event for the radar widget.
parent
fbd0c95e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
OneWeatherCore/OneWeatherCore/Managers/WidgetManager.swift
+4
-0
No files found.
OneWeatherCore/OneWeatherCore/Managers/WidgetManager.swift
View file @
308284dd
...
@@ -142,10 +142,14 @@ public class WidgetManager {
...
@@ -142,10 +142,14 @@ public class WidgetManager {
let
name
=
WidgetOptions
.
name
(
for
:
option
)
let
name
=
WidgetOptions
.
name
(
for
:
option
)
var
params
:
[
AnalyticsParameter
:
String
]
=
[
.
ANALYTICS_KEY_WIDGET_NAME
:
name
]
var
params
:
[
AnalyticsParameter
:
String
]
=
[
.
ANALYTICS_KEY_WIDGET_NAME
:
name
]
// Radar widget doesn't have smart text (IOS-260).
// TODO: this needs to be unified. Any widget not using smart text shouldn't have that parameter.
if
option
!=
.
radarLarge
{
if
let
updatedLocation
=
location
{
if
let
updatedLocation
=
location
{
let
smartText
=
self
?
.
smartTextProvider
.
smartText
(
for
:
updatedLocation
)
??
""
let
smartText
=
self
?
.
smartTextProvider
.
smartText
(
for
:
updatedLocation
)
??
""
params
[
.
ANALYTICS_KEY_WIDGET_SMART_TEXT
]
=
#
"
\
#(smartText)"
#
params
[
.
ANALYTICS_KEY_WIDGET_SMART_TEXT
]
=
#
"
\
#(smartText)"
#
}
}
}
AppAnalytics
.
shared
.
log
(
event
:
.
ANALYTICS_WIDGET_UPDATED
,
AppAnalytics
.
shared
.
log
(
event
:
.
ANALYTICS_WIDGET_UPDATED
,
params
:
params
)
params
:
params
)
...
...
Write
Preview
Markdown
is supported
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