Permalink
Browse files

while we're changing permissions, let's do a direct call

  • Loading branch information...
1 parent b2295d3 commit d040190efa1f8bd6c1f5f6403344e42c71056690 @konklone konklone committed Jan 22, 2014
View
@@ -12,7 +12,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
-<!-- <uses-permission android:name="android.permission.CALL_PHONE" /> -->
+ <uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -103,7 +103,7 @@ public void displayAvatar() {
public void callOffice() {
Analytics.legislatorCall(getActivity(), legislator.bioguide_id);
- startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel://" + legislator.phone)));
+ startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel://" + legislator.phone)));
}
public void visit(String url, String social) {

0 comments on commit d040190

Please sign in to comment.