If you have access to a OnePlus 7 or OnePlus 7 Pro and the company's Open Beta software, you check out the feature by pulling down the notification shade on your phone, tapping the cog icon to launch the Settings app and then tapping on the "Battery" heading. You'll then see a toggle to turn on Optimized Charging. If you need to turn off the feature temporarily, there's a notification that allows you to do so. OnePlus will likely roll out the feature to more devices -- as well as the stable branch of OxygenOS -- sometime in the near future.

We've seen a couple of companies take a similar approach to battery degradation. For instance, if you have iOS 13 installed on your iPhone, it's automatically set to take your charging routine into account.

Moving forward, OnePlus says it plans to enhance Optimized Charging so that it will be able to detect when your sleep schedule changes due to a time zone change or a late night out on the weekend. If you're worried about OnePlus getting access to your sleep data, the company says your schedule is stored only on your phone.