禁止状态栏下拉
16lz
2022-03-31
源码文件
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 文件搜索
- AndroidManifest.xml文件详解(uses-configuration)
- Android4.0中修改挂断键(ENDCALL)的默认行为
- android 源码的一些修改定制方案
- NPM 和webpack 的基础使用