禁止状态栏下拉
16lz
2021-01-23
源码文件
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
public void disable(int state) { //add start state = state | StatusBarManager.DISABLE_NOTIFICATION_TICKER | StatusBarManager.DISABLE_NOTIFICATION_ICONS; //end final int old = mDisabled; final int diff = state ^ old; mDisabled = state; if (DEBUG) { Log.d(TAG, String.format("disable: 0x%08x -> 0x%08x (diff: 0x%08x)", old, state, diff)); } StringBuilder flagdbg = new StringBuilder(); flagdbg.append("disable: < "); flagdbg.append(((state & StatusBarManager.DISABLE_EXPAND) != 0) ? "EXPAND" : "expand"); flagdbg.append(((diff & StatusBarManager.DISABLE_EXPAND) != 0) ? "* " : " ");
public void addNotification(IBinder key, StatusBarNotification notification) { if (DEBUG) Log.d(TAG, "addNotification score=" + notification.getScore()); Entry shadeEntry = createNotificationViews(key, notification); //add start // if (shadeEntry == null) { if (shadeEntry != null) { return; } //end
更多相关文章
- android 源码的一些修改定制方案
- android 文件搜索
- 源码网站推荐
- 【Android】打开/读取文件的方法
- Android抓屏源码
- android查看第三方libs的jar源码
- Android往SD卡上存储文件
- TextView 在xml文件中的解释