title: How to avoid forced dark theme in my app when devices can force it at app level?
body: <p>Some devices, like <strong>Poco F2 Pro</strong>, can force dark theme in apps that are not compatible with dark theme.</p>
  <p>For example, my app has this theme and is not compatible with dark theme:</p>
  <pre><code>&lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.Light.NoActionBar&quot;&gt;
  </code></pre>
  <p>This is my manifest application part, no dark theme enabled:</p>
  <pre><code>&lt;application
      android:name=&quot;.helpers.CustomApplication&quot;
      android:allowBackup=&quot;true&quot;
      android:icon=&quot;@mipmap/ic_launcher&quot;
      android:label=&quot;@string/app_name&quot;
      android:supportsRtl=&quot;true&quot;
      android:largeHeap=&quot;true&quot;
      android:theme=&quot;@style/AppTheme&quot;&gt;
  </code></pre>
  <p>The problem is that devices like <strong>Poco F2 Pro</strong>, when forcing dark theme in apps, makes my app to be displayed with incorrect and abnormal colors, breaking the UI.</p>
  <p>Can that be avoided?</p>
  <p>How to force dark theme: <a href="https://www.androidauthority.com/android-q-force-dark-mode-984090" rel="noreferrer">https://www.androidauthority.com/android-q-force-dark-mode-984090</a></p>