В моем приложении у меня есть экран ввода OTP, поэтому мне нужно ввести OTP на моем последнем экране. Для этого у меня есть 6 экранов, на этом последнем экране есть экран ввода OTP (ForgotPasswordEnterOTP).Здесь моя проблема заключается в том, что после 6-го экрана, когда снова нажата кнопка «Домой», откройте мое приложение, и отобразится последний экран (ForgotPasswordEnterOTP). Но при поиске в моем приложении из всех приложений на экране запуска устройства откройте мое приложение, после чего приложение откроется при запуске. Но здесь мне нужно отобразить последний экран (ForgotPasswordEnterOTP).Но если открыть приложение без поиска, то оно работает нормально.Но проблема возникает только при поиске приложения.Я пробовал с режимами запуска тоже.Но бесполезно.
это код файла манифеста
<application
android:name=".api.APIClient"
android:allowBackup="true"
android:icon="@drawable/launcher_logo"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@drawable/launcher_logo"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon">
<activity
android:name=".SplashScreen"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".LoginActivity"
android:screenOrientation="portrait"
/>
<activity
android:name=".ForgotPassword"
android:label="@string/title_forgot_password"
android:screenOrientation="portrait" />
<activity
android:name=".ForgotPasswordOTP"
android:label="@string/forgot_password"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".ForgotPasswordEnterOTP"
android:label="@string/forgot_password"
android:exported="true"
android:screenOrientation="portrait" />
/>
В этом случае только получение проблемы.во время поиска моего приложения, затем откройте его.За это время только получаю проблему.
Так как решить эту проблему.Пожалуйста, ведите меня, спасибо за помощь.