universal7885: parts: jni: fix flashlight stats reading

Change-Id: I3d5cb83db0c7afe5b33f0788a1c08557bc3670f6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
Soo-Hwan Na 2021-12-03 15:22:22 +09:00 committed by roynatech2544
commit 58ffb744ae
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -59,6 +59,10 @@ Java_com_eurekateam_samsungextras_interfaces_Flashlight_getFlash(JNIEnv *env, jo
jint isA10) {
android::sp<IFlashlight> service = IFlashlight::getService();
int ret;
ret = service->readFlashlightstats(Device::A10);
if (isA10 == 1){
ret = service->readFlashlightstats(Device::A10);
}else{
ret = service->readFlashlightstats(Device::NOTA10);
}
return ret;
}