Skip to content

Commit

Permalink
Merge pull request #6 from AlanTas/master
Browse files Browse the repository at this point in the history
Pequenos erros corrigidos
  • Loading branch information
AlanTas authored Dec 8, 2016
2 parents 53f26e6 + db7c9c6 commit ce48b6b
Show file tree
Hide file tree
Showing 14 changed files with 924 additions and 4,581 deletions.
394 changes: 76 additions & 318 deletions CheckLocation/.idea/workspace.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\switch_thumb_material_dark.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\color\\switch_thumb_material_dark.xml"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\wallet_secondary_text_holo_dark.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.google.android.gms\\play-services-wallet\\10.0.1\\res\\color\\wallet_secondary_text_holo_dark.xml"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\abc_tint_btn_checkable.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\color\\abc_tint_btn_checkable.xml"
Expand All @@ -75,10 +71,6 @@
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\abc_secondary_text_material_light.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\color\\abc_secondary_text_material_light.xml"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\wallet_primary_text_holo_light.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.google.android.gms\\play-services-wallet\\10.0.1\\res\\color\\wallet_primary_text_holo_light.xml"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\color\\abc_primary_text_disable_only_material_light.xml",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\color\\abc_primary_text_disable_only_material_light.xml"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_copy_mtrl_am_alpha.png",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_copy_mtrl_am_alpha.png"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_cut_mtrl_alpha.png",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_cut_mtrl_alpha.png"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_copy_mtrl_am_alpha.png",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\drawable-ldrtl-mdpi-v17\\abc_ic_menu_copy_mtrl_am_alpha.png"
},
{
"merged": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\res\\merged\\debug\\drawable-ldrtl-mdpi-v17\\abc_spinner_mtrl_am_alpha.9.png",
"source": "C:\\Users\\alant\\OneDrive\\Documentos\\GitHub\\circular\\CheckLocation\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\24.2.1\\res\\drawable-ldrtl-mdpi-v17\\abc_spinner_mtrl_am_alpha.9.png"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

148 changes: 44 additions & 104 deletions CheckLocation/app/build/intermediates/blame/res/debug/single/layout.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
#Thu Dec 08 11:24:48 GMT-03:00 2016
#Thu Dec 08 13:59:30 GMT-03:00 2016

Large diffs are not rendered by default.

Binary file modified CheckLocation/app/build/intermediates/res/resources-debug.ap_
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public class MainActivity extends AppCompatActivity implements GoogleApiClient.C
private LocationRequest locationRequest; //Objeto usafp pra fazer equisição pra uma localização
private boolean istoggled = false;
private boolean GPSconnect = false;
private update upTodate = new update();
private boolean firsttime = true;



@Override
Expand Down Expand Up @@ -118,6 +119,7 @@ protected void updateUI(){
if(googleApiClient.isConnected()) {
Toast.makeText(this, "Localização atualizada", Toast.LENGTH_LONG).show();
}
firsttime = false;
}

@Override
Expand All @@ -132,17 +134,20 @@ public void onConnectionSuspended(int i) {

public void toggle(View v){

istoggled = !istoggled;
GPSconnect = !GPSconnect;

if(GPSconnect){
// Conecta aos serviços da google play services com o cliente que criamos no onCreate()
googleApiClient.connect();
istoggled = true;
boton.setText("PARAR");
upTodate.start();
update upTodate = new update();
upTodate.start();

}

else{
istoggled = false;
googleApiClient.disconnect();
boton.setText("INICIAR");
}
Expand Down

0 comments on commit ce48b6b

Please sign in to comment.