diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/async/LoginAction.java b/app/src/main/java/org/nuclearfog/twidda/backend/async/LoginAction.java index 0e1eb502..5e675cff 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/async/LoginAction.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/async/LoginAction.java @@ -36,8 +36,8 @@ public class LoginAction extends AsyncTask { private WeakReference weakRef; private AccountDatabase accountDB; private AppDatabase database; + @Nullable private Connection connection; - @Nullable private ConnectionException exception; private int mode; @@ -47,7 +47,7 @@ public class LoginAction extends AsyncTask { * * @param activity Activity Context * @param mode indicating login step - * @param networkId ID of the selected network ID // todo add compile time check + * @param networkId ID of the selected network ID */ public LoginAction(LoginActivity activity, int mode, int networkId) { super(); @@ -57,8 +57,6 @@ public class LoginAction extends AsyncTask { if (networkId == LoginActivity.SELECTOR_TWITTER) connection = ConnectionManager.get(activity, ConnectionManager.SELECT_TWITTER); - else - connection = ConnectionManager.get(activity); this.mode = mode; } diff --git a/app/src/main/res/layout/page_login.xml b/app/src/main/res/layout/page_login.xml index ac8a5052..1ef46b12 100644 --- a/app/src/main/res/layout/page_login.xml +++ b/app/src/main/res/layout/page_login.xml @@ -78,7 +78,7 @@ android:autofillHints="pin" android:background="@android:color/transparent" android:drawablePadding="@dimen/loginpage_padding_drawable" - android:hint="@string/login_key1" + android:hint="@string/settings_key1_hint" android:inputType="textPassword" android:singleLine="true" android:textSize="@dimen/loginpage_textsize_api_key" @@ -97,7 +97,7 @@ android:autofillHints="pin" android:background="@android:color/transparent" android:drawablePadding="@dimen/loginpage_padding_drawable" - android:hint="@string/login_key2" + android:hint="@string/settings_key2_hint" android:inputType="textPassword" android:singleLine="true" android:textSize="@dimen/loginpage_textsize_api_key" diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml index 7e61603d..97a5c03b 100644 --- a/app/src/main/res/values-de-rDE/strings.xml +++ b/app/src/main/res/values-de-rDE/strings.xml @@ -170,7 +170,6 @@ Symbolfarbe Consumer Key Consumer Secret - Eigene API Schlüssel verwenden Fehler, API Zugang wurde abgelehnt! Bitte API Schlüssel überprüfen! Zu viele Nutzer Erwähnungen! Fehler, API Schlüssel veraltet, bitte App aktualisieren! @@ -206,7 +205,6 @@ Leserechte werden benötigt um Bilder und Videos einzufügen. Standortinformationen werden ausschließlich für Tweets verwendet. Fehler, Anfrage wurde abgebrochen! - • Eine Änderung der API Schlüssel erfordert erneutes einloggen Like Favorit \"Like\" anstatt \"Favorit\" verwenden diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 72e48a78..c9ca1e1d 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -72,7 +72,6 @@ 保存图片 启用代理 使用代理认证 - 设置自定义API密钥 敏感内容 公开 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 147a1286..524109ad 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -143,7 +143,6 @@ @dimen/toolbar_height 8dp 5dp - 5dp 24dp 14sp 5dp @@ -151,7 +150,6 @@ 16sp 20sp 10dp - 10 @dimen/toolbar_height diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b4a896bf..16a72f44 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -154,8 +154,6 @@ Profile image enter PIN add api keys - consumer key - consumer secret login Tweet Settings @@ -173,7 +171,6 @@ Favorite show additional Tweet information Highlight - • changing API Keys requires re-login List size use \'Like\' instead of ’Favorite’ retry @@ -241,7 +238,6 @@ save image enable proxy enable proxy authentication - setup custom API keys sensitive content 4 steps to login 1.