浏览代码

Support for Android content:// scheme

Sebastián Katzer 8 年之前
父节点
当前提交
3e6ea39910
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 2 0
      src/android/notification/util/AssetUtil.java
  2. 0 1
      www/local-notification-util.js

+ 2 - 0
src/android/notification/util/AssetUtil.java

@@ -91,6 +91,8 @@ public final class AssetUtil {
             return getUriFromAsset(path);
         } else if (path.startsWith("http")){
             return getUriFromRemote(path);
+        } else if (path.startsWith("content://")){
+            return Uri.parse(path);
         }
 
         return Uri.EMPTY;

+ 0 - 1
www/local-notification-util.js

@@ -55,7 +55,6 @@ exports.applyPlatformSpecificOptions = function () {
         defaults.group        = null;
         defaults.groupSummary = false;
         defaults.summary      = null;
-        defaults.icon         = null;
         defaults.smallIcon    = 'res://icon';
         defaults.sticky       = false;
         defaults.autoClear    = true;