-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
app/src/main/java/com/f0x1d/logfox/ui/fragment/ExtendedCopyFragment.kt
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/f0x1d/logfox/ui/fragment/LogsExtendedCopyFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.f0x1d.logfox.ui.fragment | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.hilt.navigation.fragment.hiltNavGraphViewModels | ||
import com.f0x1d.logfox.R | ||
import com.f0x1d.logfox.databinding.FragmentLogsExtendedCopyBinding | ||
import com.f0x1d.logfox.extensions.views.widgets.setupBackButtonForNavController | ||
import com.f0x1d.logfox.ui.fragment.base.BaseViewModelFragment | ||
import com.f0x1d.logfox.viewmodel.LogsViewModel | ||
import dev.chrisbanes.insetter.applyInsetter | ||
|
||
class LogsExtendedCopyFragment: BaseViewModelFragment<LogsViewModel, FragmentLogsExtendedCopyBinding>() { | ||
|
||
override val viewModel by hiltNavGraphViewModels<LogsViewModel>(R.id.logsFragment) | ||
|
||
override fun inflateBinding( | ||
inflater: LayoutInflater, | ||
container: ViewGroup? | ||
) = FragmentLogsExtendedCopyBinding.inflate(inflater, container, false) | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
binding.scrollView.applyInsetter { | ||
type(navigationBars = true) { | ||
padding(vertical = true) | ||
} | ||
} | ||
binding.toolbar.setupBackButtonForNavController() | ||
|
||
binding.logText.text = viewModel.selectedItemsContent | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector android:height="24dp" | ||
android:viewportHeight="24" | ||
android:viewportWidth="24" | ||
android:width="24dp" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path | ||
android:fillColor="?colorOnSurface" | ||
android:pathData="M3,5h2L5,3c-1.1,0 -2,0.9 -2,2zM3,13h2v-2L3,11v2zM7,21h2v-2L7,19v2zM3,9h2L5,7L3,7v2zM13,3h-2v2h2L13,3zM19,3v2h2c0,-1.1 -0.9,-2 -2,-2zM5,21v-2L3,19c0,1.1 0.9,2 2,2zM3,17h2v-2L3,15v2zM9,3L7,3v2h2L9,3zM11,21h2v-2h-2v2zM19,13h2v-2h-2v2zM19,21c1.1,0 2,-0.9 2,-2h-2v2zM19,9h2L21,7h-2v2zM19,17h2v-2h-2v2zM15,21h2v-2h-2v2zM15,5h2L17,3h-2v2zM7,17h10L17,7L7,7v10zM9,9h6v6L9,15L9,9z" /> | ||
</vector> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters