Skip to content

Commit

Permalink
Removed unused cookie references.
Browse files Browse the repository at this point in the history
  • Loading branch information
khaykov committed Apr 10, 2020
1 parent e85e644 commit 4839fe9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
import androidx.lifecycle.ViewModelProviders;
import androidx.recyclerview.widget.RecyclerView;

import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.elevation.ElevationOverlayProvider;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.tabs.TabLayout;
import com.google.android.material.tabs.TabLayout.OnTabSelectedListener;
Expand All @@ -64,7 +64,6 @@
import org.wordpress.android.fluxc.Dispatcher;
import org.wordpress.android.fluxc.generated.AccountActionBuilder;
import org.wordpress.android.fluxc.generated.ReaderActionBuilder;
import org.wordpress.android.fluxc.generated.SiteActionBuilder;
import org.wordpress.android.fluxc.model.ReaderSiteModel;
import org.wordpress.android.fluxc.model.SiteModel;
import org.wordpress.android.fluxc.store.AccountStore;
Expand Down Expand Up @@ -561,15 +560,7 @@ public void onResume() {
super.onResume();

SiteModel selectedSite = getSelectedSite();
if (selectedSite != null) {
if (selectedSite.isPrivateWPComAtomic()) {
mDispatcher.dispatch(SiteActionBuilder.newFetchAccessCookieAction(selectedSite));
} else {
checkPostAdapter();
}
} else {
checkPostAdapter();
}
checkPostAdapter();

if (mWasPaused) {
AppLog.d(T.READER, "reader post list > resumed from paused state");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface ReaderWebViewPageFinishedListener {

private boolean mIsDestroyed;
@Inject AccountStore mAccountStore;
@Inject protected PrivateAtomicCookie mPrivateAtomicCookie;


public ReaderWebView(Context context) {
super(context);
Expand Down Expand Up @@ -107,10 +107,6 @@ private void init(Context context) {
// we need third-party cookies to support authenticated images
CookieManager cookieManager = CookieManager.getInstance();
CookieManager.getInstance().setAcceptThirdPartyCookies(this, true);
if (mPrivateAtomicCookie.exists()) {
CookieManager.getInstance().setCookie(mPrivateAtomicCookie.getDomain(),
mPrivateAtomicCookie.getName() + "=" + mPrivateAtomicCookie.getValue());
}
this.setDownloadListener(
(url, userAgent, contentDisposition, mimetype, contentLength) -> {
if (hasUrlClickListener()) {
Expand Down

0 comments on commit 4839fe9

Please sign in to comment.