Skip to content
Browse files

include 'network-indicator' as part of 'http'

  • Loading branch information...
1 parent b09da68 commit 679aecd3848ac2b36f2f4226645bd69fa2f21381 @colinta colinta committed
Showing with 4 additions and 7 deletions.
  1. +1 −0 lib/bubble-wrap/http.rb
  2. +3 −7 motion/http/query.rb
View
1 lib/bubble-wrap/http.rb
@@ -1,5 +1,6 @@
require 'bubble-wrap/version' unless defined?(BubbleWrap::VERSION)
require 'bubble-wrap/loader'
+require 'bubble-wrap/network-indicator'
BubbleWrap.require('motion/core/ns_url_request.rb')
BubbleWrap.require('motion/core.rb')
BubbleWrap.require('motion/http.rb')
View
10 motion/http/query.rb
@@ -171,14 +171,10 @@ def did_receive_response(response)
def show_status_indicator(show)
if App.ios?
- if defined?(BW::NetworkIndicator)
- if show
- BW::NetworkIndicator.show
- else
- BW::NetworkIndicator.hide
- end
+ if show
+ BW::NetworkIndicator.show
else
- UIApplication.sharedApplication.networkActivityIndicatorVisible = show
+ BW::NetworkIndicator.hide
end
end
end

0 comments on commit 679aecd

Please sign in to comment.
Something went wrong with that request. Please try again.