lib/android/sugarcube-repl/repl.rb in sugarcube-3.0.0 vs lib/android/sugarcube-repl/repl.rb in sugarcube-3.0.1
- old
+ new
@@ -4,27 +4,28 @@
def build_default_tree
build_tree(@default)
end
def adjust_init(item)
- if item.is_a?(Android::View)
+ if item.is_a?(Android::View::View)
@restore = {}
end
end
def register_default_tree_selectors
- register_tree_selector(Android::ViewLayout) do |view|
+ register_tree_selector(Android::ViewGroup) do |view|
views = []
- item.getChildCount.times do |index|
- views << item.getChildAt(index)
- end
+ # item.getChildCount.times do |index|
+ # views << item.getChildAt(index)
+ # end
views
end
- register_tree_selector(Android::View) { |view| [view] }
+ register_tree_selector(Android::View::View) { |view| [view] }
end
def draw_tree_item(item)
- item.to_s
+ # item.to_s
+ 'todo'
end
def get_tree_item(item)
if item.nil?
@default