Android 7.0 のバグでHTTPS接続できない場合に免責情報を表示する
This commit is contained in:
parent
20ad454595
commit
5a8579637d
|
@ -9,8 +9,8 @@ android {
|
|||
applicationId "jp.juggler.subwaytooter"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 25
|
||||
versionCode 56
|
||||
versionName "0.5.6"
|
||||
versionCode 57
|
||||
versionName "0.5.7"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import android.content.Intent;
|
|||
import android.content.SharedPreferences;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.SystemClock;
|
||||
|
@ -851,9 +852,21 @@ public class ActMain extends AppCompatActivity
|
|||
return;
|
||||
}
|
||||
|
||||
log.e( result.error );
|
||||
|
||||
if( sv.contains( "SSLHandshakeException" )
|
||||
&& ( Build.VERSION.RELEASE.startsWith( "7.0" )
|
||||
|| ( Build.VERSION.RELEASE.startsWith( "7.1" ) && ! Build.VERSION.RELEASE.startsWith( "7.1." ) ) )
|
||||
){
|
||||
new AlertDialog.Builder( ActMain.this )
|
||||
.setMessage( sv + "\n\n" + getString( R.string.ssl_bug_7_0 ) )
|
||||
.setNeutralButton( R.string.close, null )
|
||||
.show();
|
||||
return;
|
||||
}
|
||||
|
||||
// 他のエラー
|
||||
Utils.showToast( ActMain.this, true, sv );
|
||||
log.e( result.error );
|
||||
}else{
|
||||
SavedAccount a = addPseudoAccount( instance );
|
||||
if( a != null ){
|
||||
|
|
|
@ -315,6 +315,7 @@
|
|||
<string name="word_was_muted">Ce mot a été interdit.</string>
|
||||
<string name="your_statuses">Vos statuts</string>
|
||||
<string name="launcher_icon_by">Icon de l\'application créée par フタバ</string>
|
||||
<string name="ssl_bug_7_0">Android 7.0 has a bug that can use only one elliptic curve \"prime256v1\".\nBut the instance you will connect seems does not support it.\nIf you can update OS, this bug is fixed at Android 7.1.1.\nOr you can send request to instance owner to support elliptic curve \"prime256v1\".\nsee also https://code.google.com/p/android/issues/detail?id=224438</string>
|
||||
|
||||
|
||||
<!--<string name="abc_action_bar_home_description">Revenir à l\'accueil</string>-->
|
||||
|
|
|
@ -602,4 +602,6 @@
|
|||
<string name="account_picker_reply">どのアカウントで返信しますか?</string>
|
||||
<string name="reply_from_another_account">別アカウントで返信</string>
|
||||
<string name="launcher_icon_by">ランチャーアイコンはフタバさんがデザインしました</string>
|
||||
|
||||
<string name="ssl_bug_7_0">Android 7.0 には利用できる elliptic curve が \"prime256v1\" だけというバグがあります。\nしかし対象のインスタンスはこの elliptic curve に対応していないようです。\n可能ならOSバージョン 7.1.1以降にアップデートするとバグは修正されます。\nもしくは elliptic curve \"prime256v1\" に対応してもらうよう、あなたからインスタンスのオーナーに要望を出すことができます。\n関連情報 https://code.google.com/p/android/issues/detail?id=224438</string>
|
||||
</resources>
|
|
@ -312,4 +312,5 @@
|
|||
<string name="account_picker_reply">Which account do you reply from?</string>
|
||||
<string name="reply_from_another_account">Reply from another account</string>
|
||||
<string name="launcher_icon_by">Launcher icon is designed by フタバ</string>
|
||||
<string name="ssl_bug_7_0">Android 7.0 has a bug that can use only one elliptic curve \"prime256v1\".\nBut the instance you will connect seems does not support it.\nIf you can update OS, this bug is fixed at Android 7.1.1.\nOr you can send request to instance owner to support elliptic curve \"prime256v1\".\nsee also https://code.google.com/p/android/issues/detail?id=224438</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue