File tree Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
app/src/main/java/com/raival/compose/file/explorer Expand file tree Collapse file tree 8 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import androidx.compose.ui.Modifier
1818
1919@Composable
2020fun SafeSurface (
21- modifier : Modifier = Modifier ,
2221 content : @Composable () -> Unit
2322) {
2423 Surface (
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class MainActivity : BaseActivity() {
4141 override fun onPermissionGranted () {
4242 setContent {
4343 FileExplorerTheme {
44- SafeSurface (modifier = Modifier .fillMaxSize()) {
44+ SafeSurface {
4545 val context = LocalContext .current
4646 val coroutineScope = rememberCoroutineScope()
4747 val mainActivityManager = globalClass.mainActivityManager
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ import androidx.compose.ui.unit.dp
4949import androidx.compose.ui.unit.sp
5050import androidx.compose.ui.window.Dialog
5151import androidx.compose.ui.window.DialogProperties
52- import com.raival.compose.file.explorer.App
5352import com.raival.compose.file.explorer.App.Companion.globalClass
5453import com.raival.compose.file.explorer.R
5554import com.raival.compose.file.explorer.common.compose.Space
@@ -297,7 +296,7 @@ fun SearchDialog(tab: RegularTab) {
297296 onClick = {
298297 showMoreOptionsMenu = false
299298 item.getPath().copyToClipboard()
300- globalClass.showMsg(App . globalClass.getString(R .string.copied_to_clipboard))
299+ globalClass.showMsg(globalClass.getString(R .string.copied_to_clipboard))
301300 }
302301 )
303302 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class PreferencesActivity : BaseActivity() {
4646 override fun onPermissionGranted () {
4747 setContent {
4848 FileExplorerTheme {
49- SafeSurface (modifier = Modifier .fillMaxSize()) {
49+ SafeSurface {
5050 Row (
5151 modifier = Modifier
5252 .fillMaxWidth()
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class TextEditorActivity : BaseActivity() {
5555
5656 setContent {
5757 FileExplorerTheme {
58- SafeSurface (modifier = Modifier .fillMaxSize()) {
58+ SafeSurface {
5959 Column (
6060 Modifier .fillMaxSize(),
6161 horizontalAlignment = Alignment .CenterHorizontally
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ImageViewerActivity : ViewerActivity() {
3030 override fun onReady (instance : ViewerInstance ) {
3131 setContent {
3232 FileExplorerTheme {
33- SafeSurface (modifier = Modifier .fillMaxSize()) {
33+ SafeSurface {
3434 Box (
3535 Modifier .fillMaxSize(),
3636 contentAlignment = Alignment .Center
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class MediaViewerActivity : ViewerActivity() {
6666 setContent {
6767 KeepScreenOn ()
6868 FileExplorerTheme {
69- SafeSurface (modifier = Modifier .fillMaxSize()) {
69+ SafeSurface {
7070 Box (
7171 Modifier
7272 .fillMaxSize(),
@@ -161,7 +161,9 @@ class MediaViewerActivity : ViewerActivity() {
161161 horizontalAlignment = Alignment .CenterHorizontally
162162 ) {
163163 Box (
164- Modifier .weight(1f ).padding(52 .dp),
164+ Modifier
165+ .weight(1f )
166+ .padding(52 .dp),
165167 ) {
166168 RotatingDisk (
167169 modifier = Modifier
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class PdfViewerActivity : ViewerActivity() {
5959 if (instance is PdfViewerInstance ) {
6060 setContent {
6161 FileExplorerTheme {
62- SafeSurface (modifier = Modifier .fillMaxSize()) {
62+ SafeSurface {
6363 Box (
6464 Modifier .fillMaxSize(),
6565 contentAlignment = Alignment .TopCenter
You can’t perform that action at this time.
0 commit comments