Skip to content

Commit

Permalink
Fix code analytics warnings
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Oct 20, 2023
1 parent 6f2344e commit 07c3c5a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import javax.inject.Inject
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class SendFilesDialog: BottomSheetDialogFragment(R.layout.send_files_fragment), Injectable {
class SendFilesDialog : BottomSheetDialogFragment(R.layout.send_files_fragment), Injectable {

private var files: Array<OCFile>? = null
private lateinit var binding: SendFilesFragmentBinding
Expand Down Expand Up @@ -91,6 +91,7 @@ class SendFilesDialog: BottomSheetDialogFragment(R.layout.send_files_fragment),
val sendButtonDataList = setupSendButtonData(matches)
val clickListener = setupSendButtonClickListener(sendIntent)

@Suppress("MagicNumber")
binding.sendButtonRecyclerView.layoutManager = GridLayoutManager(requireActivity(), 4)
binding.sendButtonRecyclerView.adapter = SendButtonAdapter(sendButtonDataList, clickListener)
}
Expand Down Expand Up @@ -134,4 +135,4 @@ class SendFilesDialog: BottomSheetDialogFragment(R.layout.send_files_fragment),
return dialogFragment
}
}
}
}

0 comments on commit 07c3c5a

Please sign in to comment.