From 5fd8f59009b0fae12f5e65e6a7aa5ecefb46e6c6 Mon Sep 17 00:00:00 2001 From: zhenelse Date: Mon, 10 Mar 2014 17:18:50 +0800 Subject: [PATCH] Update resource.rb google map & google earth put their icons in res/mipmap instead of res/drawable , so add this dir to show their icons. --- lib/android/resource.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/android/resource.rb b/lib/android/resource.rb index 8402617..365ec61 100644 --- a/lib/android/resource.rb +++ b/lib/android/resource.rb @@ -123,7 +123,7 @@ def global_string_pool=(pool) # @option opts [String] :contry cantry code like 'jp'... # @raise [ArgumentError] invalid id format # @note - # This method only support string and drawable resource for now. + # This method only support string and drawable/mipmap resource for now. # @note # Always return nil if assign not string type res id. # @@ -135,7 +135,7 @@ def find(res_id, opts={}) case type(tid) when 'string' return find_res_string(key, opts) - when 'drawable' + when 'drawable','mipmap' drawables = [] @types[tid].each do |type| unless type[key].nil?