Skip to content

Commit

Permalink
Fix #22 snackbar showed behind the Navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Mar 4, 2016
1 parent a3664b5 commit 3f5ec75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void showUpdateAvailableSnackbar(final Context context, String content, B
snackbarTime = Snackbar.LENGTH_LONG;
}*/

Snackbar snackbar = Snackbar.make(activity.getWindow().getDecorView().getRootView(), content, snackbarTime);
Snackbar snackbar = Snackbar.make(activity.findViewById(android.R.id.content), content, snackbarTime);
snackbar.setAction(context.getResources().getString(R.string.appupdater_btn_update), new View.OnClickListener() {
@Override
public void onClick(View view) {
Expand All @@ -78,7 +78,7 @@ static void showUpdateNotAvailableSnackbar(final Context context, String content
}*/


Snackbar.make(activity.getWindow().getDecorView().getRootView(), content, snackbarTime).show();
Snackbar.make(activity.findViewById(android.R.id.content), content, snackbarTime).show();
}

static void showUpdateAvailableNotification(Context context, String title, String content, UpdateFrom updateFrom, URL apk, int smallIconResourceId) {
Expand Down

0 comments on commit 3f5ec75

Please sign in to comment.