enable steamcmd, fix steam mobile
This commit is contained in:
parent
230c07cc98
commit
bb58bdeec9
3 changed files with 3 additions and 6 deletions
|
@ -24,7 +24,6 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!--
|
||||
<activity android:name="in.celest.xash3d.SteamActivity"
|
||||
android:label="Steam"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
|
@ -37,7 +36,6 @@
|
|||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
-->
|
||||
|
||||
<activity android:name="in.celest.xash3d.ShortcutActivity"
|
||||
android:label="@string/text_shortcut"
|
||||
|
@ -80,9 +78,7 @@
|
|||
<data android:scheme="package" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<!--
|
||||
<service android:name="in.celest.xash3d.SteamService" />
|
||||
-->
|
||||
</application>
|
||||
|
||||
<!-- Some devices with Android 2.2 should support native activity, it was in unstable hidden API -->
|
||||
|
|
|
@ -480,6 +480,7 @@ public class SteamService extends Service
|
|||
// called on every char in line until return true
|
||||
private boolean processPartial( String str ) throws CancelException, IOException
|
||||
{
|
||||
//printText(str);
|
||||
{
|
||||
if( str.contains( "Steam>" ) )
|
||||
{
|
||||
|
@ -529,7 +530,7 @@ public class SteamService extends Service
|
|||
processInput.write( (passwd + '\n').getBytes() );
|
||||
return true;
|
||||
}
|
||||
if( str.startsWith("Steam Guard code:" ))
|
||||
if( str.startsWith("Steam Guard code:" )|| str.startsWith("Two-factor code:") )
|
||||
{
|
||||
String passwd = promptDialog("Steam Guard code", "Please enter your SteamGuard code", true);
|
||||
if( passwd == null )
|
Loading…
Add table
Reference in a new issue