1.下拉開關(guān)的創(chuàng)建(哪些顯示哪些不顯示): 在vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSFactoryImpl.java中進(jìn)行開關(guān)的創(chuàng)建;不顯示直接屏蔽就好?
? public QSTile createTile(String tileSpec) {/// M: Add extra tiles in quicksetting @{Context context = mHost.getContext();IQuickSettingsPlugin quickSettingsPlugin = OpSystemUICustomizationFactoryBase.getOpFactory(context).makeQuickSettings(context);/// @}if (tileSpec.equals("wifi")) return new WifiTile(mHost); //wifielse if (tileSpec.equals("bt")) return new BluetoothTile(mHost);//藍(lán)牙else if (tileSpec.equals("cell")) return new CellularTile(mHost);//移動數(shù)據(jù)/*** 屏蔽狀態(tài)欄功能 ?wanchengguo 20190527 begin*?*/// else if (tileSpec.equals("dnd")) return new DndTile(mHost);// else if (tileSpec.equals("inversion")) return new ColorInversionTile(mHost);//else if (tileSpec.equals("airplane")) return new AirplaneModeTile(mHost);//飛行模式//else if (tileSpec.equals("work")) return new WorkModeTile(mHost);else if (tileSpec.equals("rotation")) return new RotationLockTile(mHost);//屏幕旋轉(zhuǎn)?else if (tileSpec.equals("flashlight")) return new FlashlightTile(mHost);//手電筒else if (tileSpec.equals("location")) return new LocationTile(mHost);//位置信息//else if (tileSpec.equals("cast")) return new CastTile(mHost);// else if (tileSpec.equals("hotspot")) return new HotspotTile(mHost);//else if (tileSpec.equals("user")) return new UserTile(mHost);//else if (tileSpec.eq
參考文章
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。