Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 3, 2020
1 parent 5f8d7cd commit 24452ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public void showPopUpsBlockedNotification() {
final int currentCount = mBlockedCount;
postDelayed(() -> {
if (currentCount == mBlockedCount) {
showNotification(POPUP_NOTIFICATION_ID, mURLBar.getPopUpButton(), R.string.popup_tooltip);
showNotification(POPUP_NOTIFICATION_ID, mBinding.navigationBarNavigation.urlBar.getPopUpButton(), R.string.popup_tooltip);
}
}, POP_UP_NOTIFICATION_DELAY);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -44,6 +43,10 @@ public class TrayWidget extends UIWidget implements SessionChangeListener, Widge

private static final int ICON_ANIMATION_DURATION = 200;

private static final int TAB_ADDED_NOTIFICATION_ID = 0;
private static final int TAB_SENT_NOTIFICATION_ID = 1;
private static final int BOOKMARK_ADDED_NOTIFICATION_ID = 2;

private WindowViewModel mViewModel;
private TrayBinding mBinding;
private AudioEngine mAudio;
Expand All @@ -56,7 +59,7 @@ public class TrayWidget extends UIWidget implements SessionChangeListener, Widge
private boolean mTrayVisible = true;
private Session mSession;
private WindowWidget mAttachedWindow;
private TooltipWidget mLibraryNotification;
private boolean mAddWindowVisible;

public TrayWidget(Context aContext) {
super(aContext);
Expand Down Expand Up @@ -517,15 +520,15 @@ public void onWidgetUpdate(Widget aWidget) {
}

public void showTabAddedNotification() {
showNotification(TAB_ADDED_NOTIFICATION_ID, mTabsButton, R.string.tab_added_notification);
showNotification(TAB_ADDED_NOTIFICATION_ID, mBinding.tabsButton, R.string.tab_added_notification);
}

public void showTabSentNotification() {
showNotification(TAB_SENT_NOTIFICATION_ID, mTabsButton, R.string.tab_sent_notification);
showNotification(TAB_SENT_NOTIFICATION_ID, mBinding.tabsButton, R.string.tab_sent_notification);
}

public void showBookmarkAddedNotification() {
showNotification(BOOKMARK_ADDED_NOTIFICATION_ID, mBookmarksButton, R.string.bookmarks_saved_notification);
showNotification(BOOKMARK_ADDED_NOTIFICATION_ID, mBinding.bookmarksButton, R.string.bookmarks_saved_notification);
}

private void showNotification(int notificationId, UIButton button, int stringRes) {
Expand Down

0 comments on commit 24452ed

Please sign in to comment.