diff --git a/app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt b/app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt index e2c78ec224..ef108016fd 100644 --- a/app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt +++ b/app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt @@ -189,10 +189,8 @@ class AppsRecyclerAdapter( ) } holder.txtTitle.text = rowItem.label - holder.packageName.text = rowItem.packageName holder.packageName.isSelected = true // for marquee - val enableMarqueeFilename = (fragment.requireActivity() as MainActivity) .getBoolean(PreferencesConstants.PREFERENCE_ENABLE_MARQUEE_FILENAME) @@ -205,8 +203,6 @@ class AppsRecyclerAdapter( } marqueeAfterDelay(2000, holder.txtTitle) } - - // File f = new File(rowItem.getDesc()); if (!isBottomSheet) { holder.txtDesc.text = rowItem.fileSize + " |" } @@ -311,11 +307,7 @@ class AppsRecyclerAdapter( ) { context = ContextThemeWrapper(context, R.style.overflow_black) } - val popupMenu = - PopupMenu( - context, - view, - ) + val popupMenu = PopupMenu(context, view) popupMenu.setOnMenuItemClickListener { item: MenuItem -> val themedActivity: MainActivity = fragment.requireActivity() as MainActivity val colorAccent = themedActivity.accent @@ -349,10 +341,7 @@ class AppsRecyclerAdapter( Intent( Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse( - String.format( - "package:%s", - rowItem!!.packageName, - ), + String.format("package:%s", rowItem!!.packageName), ), ), ) diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt index d8e7b3566a..d08164320d 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt @@ -115,7 +115,6 @@ class ZipService : AbstractProgressiveService() { .utilsProvider .colorPreference .getCurrentUserColorPreferences(this, sharedPreferences).accent - val notificationIntent = Intent(this, MainActivity::class.java) .putExtra(MainActivity.KEY_INTENT_PROCESS_VIEWER, true) @@ -126,10 +125,8 @@ class ZipService : AbstractProgressiveService() { notificationIntent, getPendingIntentFlag(0), ) - customSmallContentViews = RemoteViews(packageName, R.layout.notification_service_small) customBigContentViews = RemoteViews(packageName, R.layout.notification_service_big) - val stopIntent = Intent(KEY_COMPRESS_BROADCAST_CANCEL) val stopPendingIntent = PendingIntent.getBroadcast( @@ -155,7 +152,6 @@ class ZipService : AbstractProgressiveService() { .addAction(action) .setOngoing(true) .setColor(accentColor) - NotificationConstants.setMetadata(this, mBuilder, NotificationConstants.TYPE_NORMAL) startForeground(NotificationConstants.ZIP_ID, mBuilder.build()) initNotificationViews() diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt b/app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt index c5a448db4a..128cede40a 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt @@ -247,6 +247,7 @@ object FileProperties { } } + // Remap path @JvmStatic fun remapPathForApi30OrAbove( path: String, diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt b/app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt index 6dc1b7cb60..ac3f3a03a2 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt @@ -51,6 +51,7 @@ object MakeFileOperation { return File(extDir, file.name) } + // Make normal file @JvmStatic fun mkfile( file: File?, @@ -97,6 +98,7 @@ object MakeFileOperation { } } + // Make text file @JvmStatic fun mktextfile( data: String?, diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt b/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt index 0d93f64012..27a4e2bf7d 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt +++ b/app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt @@ -55,7 +55,6 @@ object RenameOperation { var outChannel: FileChannel? = null try { inStream = FileInputStream(source) - // First try the normal way if (FileProperties.isWritable(target)) { // standard way diff --git a/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt b/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt index 7adc477288..093dff4998 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt @@ -30,6 +30,7 @@ class DrawerViewModel : ViewModel() { return requireNotNull(menuMetadataMap[item.toNonLeaking()]) } + // Put drawer meta data fun putDrawerMetadata( item: MenuItem, metadata: MenuMetadata,