()
| 69 | } |
| 70 | |
| 71 | private static void init() { |
| 72 | if (sUiType != null) { |
| 73 | return; |
| 74 | } |
| 75 | String envValue = System.getenv("AGC_UI_TYPE"); |
| 76 | if (envValue == null) { |
| 77 | sUiType = isDesktop() ? UiType.BUTTONS : UiType.TOUCH; |
| 78 | } else { |
| 79 | sUiType = UiType.valueOf(envValue); |
| 80 | NLog.d("Forcing UI type to %s", sUiType); |
| 81 | } |
| 82 | NLog.i("UI type: %s", sUiType); |
| 83 | } |
| 84 | } |