View Single Post
Old 01-07-2012, 08:31 AM   #15
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by log View Post
Just keep in mind that it's actually recently read and added items that will show up there after the hack. Maybe Recent Books or something more generic would make more sense.

Very nice hack though.
Right you are! Therefore, I have updated my EbookHome.apk again; changing the SQL query that fetches the recent books to order by reading_time instead of added_date

In the disassembled EbookHome.apk: HomePageActivity.smali, line 2557:
Code:
const-string v5, "added_date DESC LIMIT 3"
is changed into
Code:
const-string v5, "reading_time DESC LIMIT 1,3"
So now I don't have to rely on the database being modified; e.g. if I get a memory card or decide to wipe the internal storage or whatnot.

The updated version is available at http://morkl.se/reader/recentlyread_v2.zip if anyone wants to check it out.
Morkl is offline   Reply With Quote