Commit a76e73c
authored
Delete DuckChatWebViewActivity (#7328)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/488551667048375/task/1211755763011422?focus=true
### Description
- This is no longer needed since Duck.ai is currently tied to the
`BrowserActivity` using `DuckChatWebViewFragment`
### Steps to test this PR
- [ ] Open Duck.ai
- [ ] Verify that it is launched correctly
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Deletes the standalone DuckChatWebViewActivity and shifts
opening/closing Duck.ai to BrowserNav with updated session handling;
cleans up manifest and tests.
>
> - **DuckChat flow**:
> - Remove `DuckChatWebViewActivity` and
`DuckChatWebViewActivityViewModel` (and related tests).
> - In `RealDuckChat`, drop `keepSession` and standalone activity path;
always use `BrowserNav.openDuckChat/closeDuckChat`.
> - Adjust session logic: `hasSessionActive` now based on
`hasActiveSession()` unless `forceNewSession`.
> - Remove `DuckChatWebViewActivityWithParams` usage and
`startDuckChatActivity` helper.
> - **Manifest**:
> - Delete `com.duckduckgo.duckchat.impl.ui.DuckChatWebViewActivity`
entry.
> - **Tests**:
> - Update `RealDuckChatTest` to assert `BrowserNav` intents and
active-session behavior; remove obsolete WebView activity tests.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
6957e7a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 96d162c commit a76e73c
File tree
6 files changed
+57
-874
lines changed- duckchat/duckchat-impl/src
- main
- java/com/duckduckgo/duckchat/impl
- ui
- test
- java/com/duckduckgo/duckchat/impl/ui
- kotlin/com/duckduckgo/duckchat/impl
6 files changed
+57
-874
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
Lines changed: 6 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
300 | | - | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
422 | 414 | | |
423 | 415 | | |
424 | 416 | | |
| |||
552 | 544 | | |
553 | 545 | | |
554 | 546 | | |
555 | | - | |
556 | | - | |
| 547 | + | |
557 | 548 | | |
558 | 549 | | |
559 | 550 | | |
560 | 551 | | |
561 | 552 | | |
562 | 553 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
| 554 | + | |
| 555 | + | |
570 | 556 | | |
571 | 557 | | |
572 | 558 | | |
| |||
584 | 570 | | |
585 | 571 | | |
586 | 572 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 573 | | |
598 | 574 | | |
599 | 575 | | |
| |||
721 | 697 | | |
722 | 698 | | |
723 | 699 | | |
724 | | - | |
725 | 700 | | |
726 | 701 | | |
727 | 702 | | |
| |||
0 commit comments