xda/XDA-One

Source code consolidation

Closed this issue · 0 comments

In the app ATM there is huge potential for consolidating various files:

  1. In XML, most of the list fragments are identical and should be able to be merged
  2. The infinite scrolling code in news, quotes, mentions, messages and threads is essentially identical and should be merged
  3. Quote and mention fragments are very close and there is potential to merge

The above are very simple to do - it's simply a matter of pulling code out and reusing it in various places

A bit more complex ideas are below:

  1. The list adapters have a huge bunch of code in common - figure out some way to consolidate this
  2. The list fragments also have a lot of common code - much of this can be consolidated as well.