AmazingGabriel16 / novelai

Novel AI Webview APK
MIT License
20 stars 5 forks source link

Remove deprecated APIs #6

Open AmazingGabriel16 opened 3 years ago

AmazingGabriel16 commented 3 years ago

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); is deprecated and needs to be updated. This is the only deprecated item that was found by gradle during build and it needs to be removed and replaced.

AmazingGabriel16 commented 3 years ago

Update

Hi there guys,

I was in the process of doing this task and just realised that if I were to remove the deprecated stuff because of API 30, it might not work for the lower level APIs and therefore essentially break the main point of this little app, which was to make it lightweight and available to as many people as possible (Android versions).

I am putting this on hold at the moment until more research and all is done, like the question in the GitHub community being answered. If you have information, feel free to post the answer in the GitHub community question, or even just post it here.

I might try and make a API 30 app specifically later on maybe just to combat this though.

Code getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setFlags(android.view.WindowInsets.Type.STATUS_BARS, android.view.WindowInsets.Type.STATUS_BARS);

Websites Deprecated item Insets Controller [Insets Type Status](https://developer.android.com/reference/android/view/WindowInsets.Type#statusBars())

GitHub Community Question

Thanks, Gabriel