I have a Base activity(extends AppCompactActivity) which is extended by all the activities. My question is if I set android:screenOrientation="portrait" from the Manifest file to the base activity, why is it not set to all the activities that are extending this activity. This is my manifest file
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".BaseActivity"
android:screenOrientation="portrait"/>
<activity android:name=".OtpActivity"></activity>
</application>