Skip to content

Commit

Permalink
Change rootView to android.R.id.content
Browse files Browse the repository at this point in the history
This is a Fix for the "Cannot find symbol variable rootView googlemaps#46" Issue in the original Google Repro.
  • Loading branch information
Go2Device authored May 25, 2018
1 parent 0146b3e commit 62674a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private void reportPermissionsError() {
}
Snackbar snackbar = Snackbar
.make(
findViewById(R.id.rootView),
findViewById(android.R.id.content),
getString(R.string.location_permission_required),
Snackbar.LENGTH_INDEFINITE)
.setAction(R.string.enable, new View.OnClickListener() {
Expand Down Expand Up @@ -325,7 +325,7 @@ private void reportGpsError() {
mSwitch.setChecked(false);
}
Snackbar snackbar = Snackbar
.make(findViewById(R.id.rootView), getString(R.string
.make(findViewById(android.R.id.content), getString(R.string
.gps_required), Snackbar.LENGTH_INDEFINITE)
.setAction(R.string.enable, new View.OnClickListener() {
@Override
Expand Down

0 comments on commit 62674a7

Please sign in to comment.