Skip to content

Commit

Permalink
feature #605 Remove useless permission requesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Jun 20, 2023
1 parent ef25a3e commit 2729361
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/jp/toastkid/yobidashi/main/ui/MainUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package jp.toastkid.yobidashi.main.ui

import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
Expand Down Expand Up @@ -109,10 +108,10 @@ import jp.toastkid.yobidashi.browser.permission.DownloadPermissionRequestContrac
import jp.toastkid.yobidashi.browser.webview.GlobalWebViewPool
import jp.toastkid.yobidashi.browser.webview.factory.WebViewClientFactory
import jp.toastkid.yobidashi.browser.webview.factory.WebViewFactory
import jp.toastkid.yobidashi.main.usecase.ClippingUrlOpener
import jp.toastkid.yobidashi.libs.network.DownloadAction
import jp.toastkid.yobidashi.main.RecentAppColoringUseCase
import jp.toastkid.yobidashi.main.StartUp
import jp.toastkid.yobidashi.main.usecase.ClippingUrlOpener
import jp.toastkid.yobidashi.main.usecase.WebSearchResultTabOpenerUseCase
import jp.toastkid.yobidashi.tab.History
import jp.toastkid.yobidashi.tab.TabAdapter
Expand Down Expand Up @@ -261,7 +260,7 @@ internal fun Content() {
replaceToCurrentTab(tabs, navigationHostController)
}
is OpenPdfEvent -> {
requestPermissionForOpenPdfTab.launch(Manifest.permission.READ_EXTERNAL_STORAGE)
activityResultLauncher.launch(OpenDocumentIntentFactory()("application/pdf"))
}
is OpenEditorEvent -> {
tabs.openNewEditorTab()
Expand Down

0 comments on commit 2729361

Please sign in to comment.