Skip to content

Commit

Permalink
Flush Cookies to storage
Browse files Browse the repository at this point in the history
  • Loading branch information
cidkidnix committed Jun 29, 2023
1 parent c5bcac5 commit efe6517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/systems/obsidian/HaskellActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.HashMap;
import java.util.HashSet;
import android.webkit.ValueCallback;
import android.webkit.CookieManager;

public class HaskellActivity extends Activity {
public native int haskellStartMain(SynchronousQueue<Long> setCallbacks);
Expand Down Expand Up @@ -111,6 +112,7 @@ public void onPause() {
if(callbacks != 0) {
haskellOnPause(callbacks);
}
CookieManager.getInstance().flush();
}

@Override
Expand All @@ -119,6 +121,7 @@ public void onStop() {
if(callbacks != 0) {
haskellOnStop(callbacks);
}
CookieManager.getInstance().flush();
}

@Override
Expand Down

0 comments on commit efe6517

Please sign in to comment.