Skip to content

Commit 8981dd8

Browse files
committed
chore: temporarily removed the chat and adjust the color of the top app bar
1 parent 93e8f87 commit 8981dd8

File tree

5 files changed

+6
-30
lines changed

5 files changed

+6
-30
lines changed

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/etb/filemanager/fragment/RecentFragment.kt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import com.etb.filemanager.R
3535
import com.etb.filemanager.activity.MainActivity
3636
import com.etb.filemanager.activity.SettingsActivity
3737
import com.etb.filemanager.compose.core.navigation.CategoryListRoute
38-
import com.etb.filemanager.compose.core.navigation.ChatRoute
3938
import com.etb.filemanager.compose.feature.presentation.HomeScreen
4039
import com.etb.filemanager.files.extensions.applyBackgroundFromPreferences
4140
import com.etb.filemanager.files.util.fileProviderUri
@@ -52,10 +51,12 @@ import com.etb.filemanager.manager.util.MaterialDialogUtils
5251
import com.etb.filemanager.settings.preference.AboutFragment
5352
import com.etb.filemanager.ui.view.ModalBottomSheetAddCategory
5453
import com.google.android.material.card.MaterialCardView
55-
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
5654
import com.google.android.material.progressindicator.CircularProgressIndicator
5755
import com.google.android.material.progressindicator.LinearProgressIndicator
58-
import kotlinx.coroutines.*
56+
import kotlinx.coroutines.CoroutineScope
57+
import kotlinx.coroutines.Dispatchers
58+
import kotlinx.coroutines.launch
59+
import kotlinx.coroutines.withContext
5960
import java.nio.file.Path
6061
import kotlin.io.path.pathString
6162

@@ -69,7 +70,6 @@ class RecentFragment : Fragment(), ItemListener {
6970
private lateinit var cBaseItem: MaterialCardView
7071
private lateinit var btnAddCategory: Button
7172
private lateinit var adapter: CategoryFileModelAdapter
72-
private lateinit var fabChat: ExtendedFloatingActionButton
7373

7474

7575
override fun onCreateView(
@@ -88,7 +88,6 @@ class RecentFragment : Fragment(), ItemListener {
8888
cRecentImg = view.findViewById(R.id.cRecentImage)
8989
btnAddCategory = view.findViewById(R.id.btnAddCategory)
9090
cInternalStorage = view.findViewById(R.id.cInternalStorage)
91-
fabChat = view.findViewById(R.id.fab_chat)
9291

9392
val mnAbout = view.findViewById<ImageView>(R.id.mn_about)
9493
val aboutFragment = AboutFragment()
@@ -162,13 +161,6 @@ class RecentFragment : Fragment(), ItemListener {
162161
startActivity(settingsIntent)
163162
}
164163
btnAddCategory.setOnClickListener { showBottomSheetAddCategory() }
165-
166-
fabChat.setOnClickListener {
167-
val intent = Intent(requireActivity(), HomeScreen::class.java).apply {
168-
putExtra("startDestination", ChatRoute)
169-
}
170-
startActivity(intent)
171-
}
172164
}
173165

174166
private fun openListFiles() {

app/src/main/res/layout-land/fragment_recent.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,6 @@
338338
</androidx.constraintlayout.widget.ConstraintLayout>
339339
</com.google.android.material.card.MaterialCardView>
340340

341-
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
342-
android:id="@+id/fab_chat"
343-
android:layout_width="wrap_content"
344-
android:layout_height="wrap_content"
345-
android:text="ChatSphere"
346-
android:layout_marginVertical="16dp"
347-
app:layout_constraintStart_toStartOf="@id/cInternalStorage"
348-
app:layout_constraintTop_toBottomOf="@id/cInternalStorage" />
349341

350342
<com.google.android.material.card.MaterialCardView
351343
android:id="@+id/cCategoryItem"

app/src/main/res/layout/fragment_home.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
android:layout_width="match_parent"
2020
android:layout_height="wrap_content"
2121
android:background="?attr/colorPrimaryContainer"
22-
app:liftOnScroll="true">
22+
app:liftOnScroll="false">
2323

2424
<com.google.android.material.appbar.MaterialToolbar
2525
android:layout_width="match_parent"

app/src/main/res/layout/fragment_recent.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,4 @@
432432
</androidx.constraintlayout.widget.ConstraintLayout>
433433
</LinearLayout>
434434
</ScrollView>
435-
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
436-
android:id="@+id/fab_chat"
437-
android:layout_width="wrap_content"
438-
android:layout_height="wrap_content"
439-
app:layout_constraintEnd_toEndOf="parent"
440-
android:text="ChatSphere"
441-
android:layout_margin="16dp"
442-
app:layout_constraintBottom_toBottomOf="parent"/>
443435
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)