| 808 | |
| 809 | |
| 810 | static void |
| 811 | nChartBridgeUpdateThemeToken(JNIEnv* env, jclass clazz, jlong bridgeHandle, |
| 812 | jobject jReplaceColors, jboolean isDark){ |
| 813 | F2_LOG_I("#F2NativeJNI", "%s", "#F2ChartBridge_nChartBridgeUpdateThemeToken "); |
| 814 | xg::bridge::ChartBridge *bridge = reinterpret_cast<xg::bridge::ChartBridge *>(bridgeHandle); |
| 815 | |
| 816 | if (jReplaceColors) { |
| 817 | std::map<int,int> replace = JavaMapIntIntToMap(env,jReplaceColors); |
| 818 | bridge->SetDarkModeInfo((bool)isDark,replace); |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | static const JNINativeMethod native_chart_bridge_methods[] = {{ |
| 823 | .name = "nCreate", |
nothing calls this directly
no test coverage detected