PDF viewer: a single tap while reading exits the document to a full-screen single-page view
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- mobile-dev
調査の方向性
まず、PreviewPdfAdapter.kt、PreviewPdfFragment.kt、PreviewPdfViewModel.kt のクリックフローを、adapter のページ全体の OnClickListener から追跡します。再現手順を使って、変更前後のジェスチャー動作とナビゲーションを比較します。読み取り中の単一タップで別の全画面ページビューが予期せず開かず、読み取り位置が保持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
⚠️ Before posting ⚠️
- This is a bug, not a question or an enhancement.
- I've searched for similar issues and didn't find a duplicate.
- I've written a clear and descriptive title for this issue.
- I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- Open a multi-page PDF from the Files list (native in-app viewer, not "open with" / browser).
- Scroll down a few pages.
- While reading, tap once anywhere on the page (no drag).
- The app opens a separate full-screen view showing only that single page.
- Press back → you return to the document but the reading/scroll position is lost (back near the top).
Expected behaviour
A single tap on the page while reading should not leave the scrollable document, and the reading position must be preserved. Accidental taps are very frequent when reading a long PDF one-handed.
Actual behaviour
PreviewPdfAdapter registers an OnClickListener on the whole page view. Any click on a page calls PreviewPdfViewModel.onClickPage(), which writes the page bitmap to a temp file and launches PreviewBitmapActivity — a separate full-screen activity showing only the tapped page, outside the scrollable RecyclerView. Coming back from it drops the reading position.
Source (current master)
app/src/main/java/com/owncloud/android/ui/preview/pdf/PreviewPdfAdapter.ktL33-35 —binding.root.setOnClickListener { onClickListener(bitmap) }: whole-page click target, no gesture discrimination.app/src/main/java/com/owncloud/android/ui/preview/pdf/PreviewPdfFragment.ktL79-92 — click →viewModel.onClickPage(page)→ observer onpreviewImagePathstartsPreviewBitmapActivity.app/src/main/java/com/owncloud/android/ui/preview/pdf/PreviewPdfViewModel.ktL55-61 —onClickPage()saves the bitmap to cache and sets_previewImagePath.
Android version
16
Device brand and model
Xiaomi Poco X7 Pro 5G
Stock or custom OS?
Stock (Xiaomi HyperOS)
Nextcloud android app version
34.1.1
Nextcloud server version
34.0.3
Using a reverse proxy?
Yes (Traefik) — not relevant, PDF rendering is fully client-side.
Additional information
The full-screen single-page view appears intended as a "tap to zoom" feature, but bound to a plain click on the entire page it fires on every accidental tap during reading. Possible directions: require a double-tap for the zoom view, shrink the tap target, or at least preserve/restore the RecyclerView scroll position when returning from PreviewBitmapActivity.
- 主要言語
- Kotlin
- スター
- 5.7k
- フォーク
- 2.1k
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 135
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/android のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
nextcloud/android#17845 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the app対応中かも @falkloewert が 28 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nextcloud/android#17837 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nextcloud/android#17533 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")対応中かも @ChristianTannheimer が 118 日前に担当しました。 オープン0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
nextcloud/android の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Kotlin/kotlin-lsp#309 ·
-
area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
enorm-labs/event-junkie#5136 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
Type: Possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
spacecowboy/Feeder#1318 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
wangzan101/Mika#644 ·
メンテナーはふだん 1 日以内に返信