Skip to content

Commit

Permalink
Fixes #354 MOAT Solution Textfield is only enabled when there's a sol…
Browse files Browse the repository at this point in the history
…ution. Also do not automatically open up the keyboard when there's nothing to type.
  • Loading branch information
bitmold committed Jun 16, 2020
1 parent da5f80d commit d521ae0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@
android:stateNotNeeded="true"
android:theme="@android:style/Theme.Translucent" />

<activity
android:name=".ui.VPNEnableActivity"
android:exported="false"
android:label="@string/app_name" />

<activity
android:name=".settings.SettingsPreferences"
android:label="@string/app_name" />
Expand Down Expand Up @@ -107,7 +102,9 @@

<activity android:name=".ui.onboarding.OnboardingActivity" />
<activity android:name=".ui.onboarding.BridgeWizardActivity" />
<activity android:name=".ui.onboarding.MoatActivity" />
<activity
android:name=".ui.onboarding.MoatActivity"
android:windowSoftInputMode="stateHidden" />
<activity android:name=".ui.onboarding.CustomBridgesActivity" />

<provider
Expand Down Expand Up @@ -164,12 +161,12 @@
android:name=".service.OrbotService"
android:enabled="true"
android:permission="android.permission.BIND_VPN_SERVICE"
android:stopWithTask="false" >
android:stopWithTask="false">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>

</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ protected void onCreate(Bundle savedInstanceState) {
mProgressBar.setVisibility(View.GONE);
mIvCaptcha.setImageBitmap(BitmapFactory.decodeByteArray(mCaptcha, 0, mCaptcha.length));
mRequestInProgress = false;
mEtSolution.setEnabled(true);
}
}
else {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_moat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="10"
android:enabled="false"
android:hint="@string/enter_characters_from_image"
android:imeOptions="actionSend"
android:inputType="textShortMessage|text"
Expand Down

0 comments on commit d521ae0

Please sign in to comment.