diff options
author | David-Development <david-dev@live.de> | 2021-08-22 12:50:40 +0300 |
---|---|---|
committer | David Luhmer <david-dev@live.de> | 2021-08-22 12:50:40 +0300 |
commit | 33acf152d2e307af7579a9f496e5426ad8033f00 (patch) | |
tree | f029f6839ee3441e6afd03dc359d44c43e788c92 /News-Android-App/src/main/java | |
parent | a10112fe3321fde384bff106fe20dfd1b0ba60fc (diff) |
fix indentation
Signed-off-by: David Luhmer <david-dev@live.de>
Diffstat (limited to 'News-Android-App/src/main/java')
-rw-r--r-- | News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/LoginDialogActivity.java | 6 | ||||
-rw-r--r-- | News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/LoginDialogActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/LoginDialogActivity.java index f4c9ace9..c75eab8e 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/LoginDialogActivity.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/LoginDialogActivity.java @@ -421,7 +421,7 @@ public class LoginDialogActivity extends AppCompatActivity { }); } - public static void ShowAlertDialog(String title, String text, Activity activity) { + public static void ShowAlertDialog(String title, String text, Activity activity) { // Linkify the message final SpannableString s = new SpannableString(text != null ? text : activity.getString(R.string.login_dialog_select_account_unknown_error_toast)); Linkify.addLinks(s, Linkify.ALL); @@ -434,8 +434,8 @@ public class LoginDialogActivity extends AppCompatActivity { aDialog.show(); // Make the textview clickable. Must be called after show() - ((TextView)aDialog.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance()); - } + ((TextView) aDialog.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance()); + } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java index 606062f5..86e1e0d9 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java @@ -430,9 +430,8 @@ public class NewsReaderListActivity extends PodcastFragmentActivity implements getString(R.string.login_dialog_text_news_app_not_installed_on_server, "https://github.com/nextcloud/news/blob/master/docs/install.md#installing-from-the-app-store"), this); - } else if(exception instanceof TokenMismatchException) { - Toast.makeText(NewsReaderListActivity.this, "Token out of sync. Please reauthenticate", Toast.LENGTH_LONG).show(); - + } else if (exception instanceof TokenMismatchException) { + Toast.makeText(NewsReaderListActivity.this, "Token out of sync. Please reauthenticate", Toast.LENGTH_LONG).show(); try { SingleAccountHelper.reauthenticateCurrentAccount(this); } catch (NextcloudFilesAppAccountNotFoundException | NoCurrentAccountSelectedException | NextcloudFilesAppNotSupportedException e) { |