Skip to content

Commit

Permalink
Merge branch 'master' into bigger124-master
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Oct 1, 2023
2 parents 6efdd78 + 4bf9cae commit 99ef982
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public String convertMarkupShowInWebView(Document document, String content, Acti
/**
* Convert markup text to target format
*
* @param markup Markup text
* @param context Android Context
* @param markup Markup text
* @param context Android Context
* @param lightMode
* @param lineNum
* @return html as String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public class WikitextTextConverter extends TextConverterBase {
/**
* First, convert Wikitext to regular Markor markdown. Then, calls the regular converter.
*
* @param markup Markup text
* @param context Android Context
* @param lightMode True if the light theme is to apply.
* @param markup Markup text
* @param context Android Context
* @param lightMode True if the light theme is to apply.
* @param lineNum
* @param file The file to convert.
* @param file The file to convert.
* @return HTML text
*/
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#########################################################*/
package net.gsantner.markor.frontend.textview;

import android.animation.ObjectAnimator;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Build;
Expand Down Expand Up @@ -216,7 +215,7 @@ public static int[] countChars(final CharSequence s, final char... chars) {
public static int[] countChars(final CharSequence s, int start, int end, final char... chars) {
// Faster specialization for the common single case
if (chars.length == 1) {
return new int[] {countChar(s, start, end, chars[0])};
return new int[]{countChar(s, start, end, chars[0])};
}

final int[] counts = new int[chars.length];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.Toolbar;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
Expand All @@ -47,7 +44,6 @@
import net.gsantner.markor.frontend.MarkorDialogFactory;
import net.gsantner.markor.frontend.filebrowser.MarkorFileBrowserFactory;
import net.gsantner.markor.frontend.filesearch.FileSearchEngine;
import net.gsantner.markor.frontend.textview.TextViewUtils;
import net.gsantner.markor.model.AppSettings;
import net.gsantner.markor.util.MarkorContextUtils;
import net.gsantner.opoc.frontend.base.GsFragmentBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,9 @@ public File createDirectoryHere(final CharSequence name) {

/**
* Show a file in the current folder and blink it
* @param file File to blink
* @param recycler RecyclerView which holds the file items
*
* @param file File to blink
* @param recycler RecyclerView which holds the file items
*/
public void showAndBlink(final File file, final RecyclerView recycler) {
final int pos = getFilePosition(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ public void afterTextChanged(final Editable s) {
}

final int CHAR = 0, SPACE = 1, NL = 2;

private int typeOf(final char c) {
switch(c) {
switch (c) {
case '\n':
return NL;
case ' ':
Expand Down

0 comments on commit 99ef982

Please sign in to comment.