mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
universal7885: parts: jni: fix flashlight stats reading
Change-Id: I3d5cb83db0c7afe5b33f0788a1c08557bc3670f6 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
26d5db6a68
commit
58ffb744ae
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue