Compare commits

..

8 Commits

Author SHA1 Message Date
Ammar Ahmed
3a9b5baa3d mobile: set default widget size 2024-12-28 00:20:38 +05:00
Ammar Ahmed
ed7053a0a4 mobile: fix formatting 2024-12-27 23:04:43 +05:00
Ammar Ahmed
59474dcd5c mobile: resizable and themeable android widget 2024-12-27 21:12:54 +05:00
Ammar Ahmed
702976c6cf mobile: do not show progress when doing full auto backup 2024-12-26 12:44:54 +05:00
Ammar Ahmed
3ec8500515 mobile: add fdroid release notes 2024-12-26 12:32:27 +05:00
Ammar Ahmed
2c03420f33 mobile: release v3.0.25 2024-12-26 12:25:12 +05:00
Ammar Ahmed
868ae597ae mobile: fix ts errors 2024-12-26 12:25:12 +05:00
01zulfi
59d3e06935 intl: fix casing in legal & notebooks strings (#7142)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
2024-12-26 11:29:57 +05:00
16 changed files with 82 additions and 39 deletions

View File

@@ -497,7 +497,7 @@ export const useAppEvents = () => {
}
if (fullBackup) {
await BackupService.run(true, undefined, "full");
await BackupService.run(false, undefined, "full");
}
}

View File

@@ -70,7 +70,7 @@
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/note_widget_info" />
android:resource="@xml/new_note_widget_info" />
</receiver>
<activity

View File

@@ -5,6 +5,7 @@ import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.RemoteViews;
/**
@@ -24,21 +25,29 @@ public class NoteWidget extends AppWidgetProvider {
appWidgetManager.updateAppWidget(appWidgetId, views);
}
@Override
public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle newOptions) {
super.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions);
updateAppWidget(context, appWidgetManager, appWidgetId, newOptions);
}
private void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle options) {
int minWidth = options != null ? options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH) : 0;
// int minHeight = options != null ? options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT) : 0;
int layoutId = (minWidth < 100) ? R.layout.note_widget_icon : R.layout.note_widget;
RemoteViews views = new RemoteViews(context.getPackageName(), layoutId);
appWidgetManager.updateAppWidget(appWidgetId, views);
}
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
// There may be multiple widgets active, so update all of them
for (int appWidgetId : appWidgetIds) {
updateAppWidget(context, appWidgetManager, appWidgetId);
updateAppWidget(context, appWidgetManager, appWidgetId,null);
}
}
@Override
public void onEnabled(Context context) {
// Enter relevant functionality for when the first widget is created
}
@Override
public void onDisabled(Context context) {
// Enter relevant functionality for when the last widget is disabled
}
}

View File

@@ -1,4 +1,4 @@
<vector android:height="24dp" android:tint="#000000"
<vector android:height="24dp" android:tint="@color/text"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M14,2L6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6zM16,16h-3v3h-2v-3L8,16v-2h3v-3h2v3h3v2zM13,9L13,3.5L18.5,9L13,9z"/>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#CCFFFFFF"/>
<solid android:color="@color/background"/>
<stroke android:width="0dp" android:color="#B1BCBE" />
<corners android:radius="10dp"/>
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />

View File

@@ -6,7 +6,6 @@
android:padding="@dimen/widget_margin"
android:theme="@style/ThemeOverlay.Notesnook.AppWidgetContainer">
<LinearLayout
android:layout_width="match_parent"
android:id="@+id/widget_button"
@@ -18,21 +17,21 @@
android:elevation="5dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerVertical="true">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:textSize="16sp"
android:text="Take a quick note." />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@drawable/add_note"
android:contentDescription="New note icon" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:textColor="@color/text"
android:textSize="16sp"
android:text="@string/take_a_quick_note" />
</LinearLayout>
</RelativeLayout>

View File

@@ -0,0 +1,13 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/layout_bg"
android:padding="@dimen/widget_margin">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="16dp"
android:src="@drawable/add_note" />
</FrameLayout>

View File

@@ -5,4 +5,6 @@
<color name="light_blue_600">#FF039BE5</color>
<color name="light_blue_900">#FF01579B</color>
<color name="bootsplash_background">#1f1f1f</color>
<color name="background">#1D1D1D</color>
<color name="text">#B4B4B4</color>
</resources>

View File

@@ -5,4 +5,6 @@
<color name="light_blue_600">#FF039BE5</color>
<color name="light_blue_900">#FF01579B</color>
<color name="bootsplash_background">#FFFFFF</color>
<color name="background">#FFFFFF</color>
<color name="text">#000000</color>
</resources>

View File

@@ -3,4 +3,5 @@
<string name="title_activity_share">NotesnookShare</string>
<string name="appwidget_text">EXAMPLE</string>
<string name="add_widget">Add widget</string>
<string name="take_a_quick_note">Take a quick note.</string>
</resources>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialKeyguardLayout="@layout/note_widget"
android:initialLayout="@layout/note_widget"
android:minWidth="50dp"
android:minHeight="50dp"
android:targetCellWidth="5"
android:targetCellHeight="1"
android:previewImage="@drawable/widget_preview"
android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="86400000"
android:widgetCategory="home_screen"/>

View File

@@ -2,9 +2,9 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialKeyguardLayout="@layout/note_widget"
android:initialLayout="@layout/note_widget"
android:minWidth="300dp"
android:minWidth="50dp"
android:minHeight="50dp"
android:previewImage="@drawable/widget_preview"
android:resizeMode="horizontal"
android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="86400000"
android:widgetCategory="home_screen"></appwidget-provider>
android:widgetCategory="home_screen"/>

View File

@@ -0,0 +1,5 @@
- You can now share multiple files to Notesnook
- Fix file and image sharing not working
- Many other bug fixes and small improvements
Thank you for using Notesnook!

View File

@@ -3185,8 +3185,8 @@ msgid "Learn more about Notesnook Monograph"
msgstr "Learn more about Notesnook Monograph"
#: src/strings.ts:1537
msgid "legal"
msgstr "legal"
msgid "Legal"
msgstr "Legal"
#: src/strings.ts:468
msgid "Let us know if you have faced any issue/bug while using Notesnook. We will try to fix it as soon as possible."
@@ -3833,12 +3833,12 @@ msgstr "Notebook"
msgid "notebooks"
msgstr "notebooks"
#: src/strings.ts:258
#: src/strings.ts:316
#: src/strings.ts:1495
msgid "Notebooks"
msgstr "Notebooks"
#: src/strings.ts:258
#: src/strings.ts:1769
msgid "NOTEBOOKS"
msgstr "NOTEBOOKS"

View File

@@ -3171,7 +3171,7 @@ msgid "Learn more about Notesnook Monograph"
msgstr ""
#: src/strings.ts:1537
msgid "legal"
msgid "Legal"
msgstr ""
#: src/strings.ts:468
@@ -3819,12 +3819,12 @@ msgstr ""
msgid "notebooks"
msgstr ""
#: src/strings.ts:258
#: src/strings.ts:316
#: src/strings.ts:1495
msgid "Notebooks"
msgstr ""
#: src/strings.ts:258
#: src/strings.ts:1769
msgid "NOTEBOOKS"
msgstr ""

View File

@@ -255,7 +255,7 @@ export const strings = {
t`or email us at`
],
migrationFailed: () => t`Migration failed`,
notebooks: () => t`NOTEBOOKS`,
notebooks: () => t`Notebooks`,
syncingHeading: () => t`Syncing your data`,
syncingDesc: () => t`Please wait while we sync all your data.`,
downloadingAttachments: () => t`Downloading attachments`,
@@ -1534,7 +1534,7 @@ For example:
dateError: () => t`Reminder time cannot be earlier than the current time.`,
failedToDecryptBackup: () => t`Failed to decrypt backup`,
backupDirectoryNotSelected: () => t`Backup directory not selected`,
legal: () => t`legal`,
legal: () => t`Legal`,
days: (days: number) =>
plural(days, {
one: `1 day`,