|
@@ -27,8 +27,13 @@ public class NavigationCommandsHandler {
|
27
|
27
|
*
|
28
|
28
|
* @param params ActivityParams as bundle
|
29
|
29
|
*/
|
30
|
|
- public static void startApp(Bundle params) {
|
31
|
|
- Intent intent = new Intent(NavigationApplication.instance, NavigationActivity.class);
|
|
30
|
+ public static void startApp(Bundle params, boolean portraitOnlyMode) {
|
|
31
|
+ Intent intent;
|
|
32
|
+ if (portraitOnlyMode) {
|
|
33
|
+ intent = new Intent(NavigationApplication.instance, PortraitNavigationActivity.class);
|
|
34
|
+ } else {
|
|
35
|
+ intent = new Intent(NavigationApplication.instance, NavigationActivity.class);
|
|
36
|
+ }
|
32
|
37
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
|
33
|
38
|
intent.putExtra(ACTIVITY_PARAMS_BUNDLE, params);
|
34
|
39
|
NavigationApplication.instance.startActivity(intent);
|
|
@@ -183,8 +188,8 @@ public class NavigationCommandsHandler {
|
183
|
188
|
}
|
184
|
189
|
|
185
|
190
|
public static void setScreenTitleBarLeftButtons(final String screenInstanceId,
|
186
|
|
- final String navigatorEventId,
|
187
|
|
- final TitleBarLeftButtonParams titleBarButtons) {
|
|
191
|
+ final String navigatorEventId,
|
|
192
|
+ final TitleBarLeftButtonParams titleBarButtons) {
|
188
|
193
|
final NavigationActivity currentActivity = NavigationActivity.currentActivity;
|
189
|
194
|
if (currentActivity == null) {
|
190
|
195
|
return;
|