Skip to content

Commit

Permalink
Merge pull request #1 from Go2Device/Go2Device-patch-1
Browse files Browse the repository at this point in the history
Change rootView to android.R.id.content
  • Loading branch information
Go2Device authored May 25, 2018
2 parents 0146b3e + 62674a7 commit 54b3199
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 54b3199

Please sign in to comment.