Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 679aecd3848ac2b36f2f4226645bd69fa2f21381 1 parent b09da68
@colinta colinta authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.