title: Issue extending BaseActivity() (Kotlin)
body: <p>I'm developing an app and I need help with a strange problem.</p>
  <p>I want to restrict the user from taking screenshots and stuff, and I know I have to use this line of code:</p>
  <pre><code>override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
          super.onCreate(savedInstanceState, persistentState)
          window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
      }
  </code></pre>
  <p>I have been told to put this on the onCreate() function of the BaseActivity() class, but it doesn't work.</p>
  <p>All my activities extend BaseActivity(), BaseActivity extends AppCompatActivity()</p>
  <p>The thing is, if I put the line of code directly on the onCreate() function of an activity, it works, but if I put it in BaseActivity() and extend it it doesn't. So, what am I doing wrong?</p>
  <p>I have been told to put it like this</p>
  <pre><code> abstract class BaseActivity : AppCompatActivity() {
      override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
          window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
          super.onCreate(savedInstanceState, persistentState)
      }
  }
  </code></pre>
  <p>But it doesn't work either with the flags over or under the super.Oncreate</p>
  <p>EDIT:</p>
  <p>I'm talking to my senior and he says it's because I am overriding onCreate() on each Activity I have, and it eats the BaseActivity inherited onCreate, so, what can I do?</p>