Skip to content

Commit

Permalink
Merge branch 'master' into rework_attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 authored Oct 2, 2023
2 parents 4d837e5 + 4bf9cae commit 1dbf027
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 46 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
1 change: 1 addition & 0 deletions app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ work. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
<string name="list_in_recent_files">Mostra-ho als fitxers recents</string>
<string name="reload">Recarrega</string>
<string name="wrap_words">Ajusta les paraules</string>
<string name="line_numbers">Números de línies</string>
<string name="soft_break_if_not_fit_to_width_else_enable_horizontal_scrolling">Salt suau si el text no s\'ajusta a l\'amplada de la pantalla. En cas contrari, activeu el desplaçament horitzontal.</string>
<string name="recursive_search_in_current_directory">Cerca recursiva al directori actual.</string>
<string name="always_open_with_this_app">Obre sempre amb aquesta aplicació</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ work. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
<string name="list_in_recent_files">Lista de archivos recientes</string>
<string name="reload">Refrescar</string>
<string name="wrap_words">Cambio de línea</string>
<string name="line_numbers">Número de línea</string>
<string name="soft_break_if_not_fit_to_width_else_enable_horizontal_scrolling">Desliza suavemente si el texto no se ajusta al ancho de pantalla. De lo contrario, activa el desplazamiento horizontal.</string>
<string name="recursive_search_in_current_directory">Búsqueda recursiva en el directorio actual.</string>
<string name="always_open_with_this_app">Siempre abierto con esta aplicación</string>
Expand Down
Loading

0 comments on commit 1dbf027

Please sign in to comment.