Android 8.1 —设置新TF卡时,下拉栏弹窗只保留“用作便携式存储设备”选项

— a/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/layout/storage_wizard_init.xml
+++ b/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/layout/storage_wizard_init.xml
@@ -59,6 +59,7 @@
android:id=“@+id/storage_wizard_init_internal_summary”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”

  •                   android:visibility="gone" 
           android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra"
           android:textAppearance="@android:style/TextAppearance.Material.Body1"
           android:textColor="?android:attr/textColorSecondary"
    

diff --git a/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/deviceinfo/StorageWizardInit.java b/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/deviceinfo/StorageWizardInit.java
index ffc07e520f…2e6ac065e7 100755
— a/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/deviceinfo/StorageWizardInit.java
+++ b/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/deviceinfo/StorageWizardInit.java
@@ -27,6 +27,7 @@ import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.RadioButton;

import com.android.settings.R;
+import android.view.View;

public class StorageWizardInit extends StorageWizardBase {
private RadioButton mRadioExternal;
@@ -54,7 +55,10 @@ public class StorageWizardInit extends StorageWizardBase {

     mRadioExternal.setOnCheckedChangeListener(mRadioListener);
     mRadioInternal.setOnCheckedChangeListener(mRadioListener);
  •           //add ycj for mRadioInternal gone
    
  •           //mRadioInternal.setEnabled(false);
    
  •           mRadioInternal.setVisibility(View.INVISIBLE);
    
  •           //end
       findViewById(R.id.storage_wizard_init_external_summary).setPadding(
               mRadioExternal.getCompoundPaddingLeft(), 0,
               mRadioExternal.getCompoundPaddingRight(), 0);
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值