Skip to content

Commit

Permalink
hide location tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShehanaIqbal committed May 25, 2020
1 parent 960e41f commit ca68315
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

import android.content.Intent;
import android.os.Bundle;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
import android.widget.Switch;

import com.example.acmcovidapplication.db.DatabaseHelper;
Expand Down Expand Up @@ -38,6 +41,11 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

DatabaseHelper.getInstance(this).insertLocationTrackable(isChecked);
LocalBroadcastManager.getInstance(this).sendBroadcast(CustomService.makeIntent(isChecked));

RelativeLayout box=findViewById(R.id.l2);
if (isChecked){
box.setVisibility(View.VISIBLE);
}else{
box.setVisibility(View.GONE);
}
}
}

0 comments on commit ca68315

Please sign in to comment.