mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
adapt new number of initial chats
This commit is contained in:
@@ -61,11 +61,11 @@ public class DozeReminder extends Reminder {
|
||||
return false;
|
||||
}
|
||||
|
||||
// if the chatlist is empty, just after installation,
|
||||
// if the chatlist only contains device-talk and self-talk, just after installation,
|
||||
// do not bother with battery, let the user check out other things first.
|
||||
try {
|
||||
int numberOfChats = DcHelper.getContext(context).getChatlist(0, null, 0).getCnt();
|
||||
if (numberOfChats == 0) {
|
||||
if (numberOfChats <= 2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user