Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed May 25, 2024
1 parent 4eb99a7 commit 23d69d1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -548,7 +547,7 @@ private static String extractShareText(final Intent intent) {
link = link != null ? link.trim() : "";

if (Patterns.WEB_URL.matcher(link).matches()) {
link = (title != null? title : "") + sanitize(link);
link = (title != null ? title : "") + sanitize(link);
}

return link;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import android.text.TextWatcher;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;

import net.gsantner.markor.ApplicationObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.regex.Matcher;

public class WikitextActionButtons extends ActionButtonBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,12 @@ public static class HeadlineDialogState {

/**
* Show a dialog to select a heading
* @param activity Activity
* @param edit Editable text
* @param webView WebView corresponding to the text
* @param state State of the dialog, so it can be restored.
* @param levelCallback Callback to get the heading level given the text and line start and end
*
* @param activity Activity
* @param edit Editable text
* @param webView WebView corresponding to the text
* @param state State of the dialog, so it can be restored.
* @param levelCallback Callback to get the heading level given the text and line start and end
*/
public static void showHeadlineDialog(
final Activity activity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import android.os.Bundle;
import android.os.Handler;
import android.text.InputFilter;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Pair;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -51,7 +50,6 @@
import net.gsantner.opoc.wrapper.GsCallback;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ public static void blinkView(final View view) {
}

final ObjectAnimator animator = ObjectAnimator.ofFloat(
view, View.ALPHA, 0.1f, 1.0f, 0.1f, 1.0f)
view, View.ALPHA, 0.1f, 1.0f, 0.1f, 1.0f)
.setDuration(500);

view.setTag(BLINK_ANIMATOR_TAG, new WeakReference<>(animator));
Expand Down

0 comments on commit 23d69d1

Please sign in to comment.