- If only Navigator.Pop(), the widget just shows a black screen when
Back button.
- So, changed to use Bundle API and update Content info.
Change-Id: I88fed3b4ac321023ae27f44fd359f80474fc44e1
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
\r
backButton.Clicked += (object source, ClickedEventArgs args) =>\r
{\r
- navigator.Pop();\r
+ // Instead of using `navigator.Pop();` code\r
+ RequestWidgetPop();\r
};\r
\r
appBar.NavigationContent = backButton;\r
settingScroll.Add(label);\r
}\r
\r
+ protected void RequestWidgetPop()\r
+ {\r
+ // Update Widget Content by sending message to pop the fourth page.\r
+ Bundle nextBundle = new Bundle();\r
+ nextBundle.AddItem("WIDGET_ACTION", "POP");\r
+ String encodedBundle = nextBundle.Encode();\r
+ SetContentInfo(encodedBundle);\r
+ }\r
+\r
protected override void OnPause()\r
{\r
base.OnPause();\r