Skip to content

Commit

Permalink
[hapjs-platform#631]【1300联盟版本】无障碍新增组件属性方法
Browse files Browse the repository at this point in the history
Change-Id: I132075096e1f7b5beaccfe64a2ccc23e43a2221b
Signed-off-by: cmc <[email protected]>
  • Loading branch information
mingcan-mc committed Dec 13, 2023
1 parent de44ce6 commit 813a33b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;

import com.facebook.common.executors.UiThreadImmediateExecutorService;
import com.facebook.common.util.UriUtil;
Expand Down Expand Up @@ -1352,6 +1354,15 @@ public void process(Bitmap output, Bitmap source) {
}
}

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
super.onInitializeAccessibilityNodeInfo(info);
info.setClassName("");
info.setClickable(false);
info.removeAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_CLICK);
}

private class ImageSizeDetectRequestListener extends BaseRequestListener {
@Override
public void onProducerFinishWithSuccess(String requestId, String producerName, @javax.annotation.Nullable Map<String, String> extraMap) {
Expand Down

0 comments on commit 813a33b

Please sign in to comment.