Android:删除4G流量上下行图标,即隐藏不显示

/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/

StatusBarMobileView.java

   private void initViewState() {

   //*/20231102,hide network data up/down icon
        mIn.setVisibility(View.GONE);
        mOut.setVisibility(View.GONE);
        /*/
        mIn.setVisibility(mState.activityIn ? View.VISIBLE : View.GONE);
        mOut.setVisibility(mState.activityOut ? View.VISIBLE : View.GONE);
        //*/

}

    private boolean updateState(MobileIconState state) {

      //*/20231102,hide network data up/down icon
        mIn.setVisibility(View.GONE);
        mOut.setVisibility(View.GONE);
        /*/
        mIn.setVisibility(mState.activityIn ? View.VISIBLE : View.GONE);
        mOut.setVisibility(mState.activityOut ? View.VISIBLE : View.GONE);
        //*/

 当然,如果漫游数据也要隐藏,也参考此修改

mMobileRoaming.setVisibility(mState.roaming ? View.VISIBLE : View.GONE);

mMobileRoaming.setVisibility(View.GONE);

你可能感兴趣的:(android,java,智能手机)