title: How to combine Intent flags in Kotlin
body: <p>I want to combine two intent flags as we do below in Android:</p>
  <pre><code>Intent intent = new Intent(this, MapsActivity.class);
  intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);
  </code></pre>
  <p>I tried doing something like this but it didn't work for me:</p>
  <pre><code>val intent = Intent(context, MapActivity::class.java)
  intent.flags = (Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK)
  </code></pre>