Source on GitHub
Testing and Issues
You can test this app and submit issues during the testing period of the Android Contest 2021 contest.
Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.
commit - https://github.com/opiumfive/Telegram/commit/9d3584cc7c7e38a628c95feaf35cf55a331ae1a8
Made Telegram CameraController support both camera1 and camera2, that brings camera2 features to the Telegram app.
Added Camera2 support in Camera2Controller class for all use cases like camera previews, photo captures, video records and instant video capture. Code for Camera2 follows the same style as the existing code base.
Added an interface and a fabric class CameraController that decides which camera API to use on a given device.
The original CameraController is kept intact, except for adding the interface implementation and renaming to Camera1Controller,
so minimal changes added in original code => no bugs added for Camera1 usage, ensuring backward compatibility with Android 4.x -6.0 and devices, which don't support Camera2 API.