Skip to content

Commit

Permalink
Allows launcher shortcuts to be created for custom search filters
Browse files Browse the repository at this point in the history
  • Loading branch information
saelim committed Jul 31, 2024
1 parent e2b8d53 commit 3ecae6e
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 34 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
minSdkVersion 26
targetSdkVersion 34
multiDexEnabled true
versionCode 1340
versionName "4.5.2m"
versionCode 1341
versionName "4.5.3"
}

buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/appmindlab/nano/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class Const {
protected final static String PREF_PROCESS_TEXT_MODE = "com.appmindlab.nano.pref_process_text_mode";
protected final static String PREF_WORKING_SET_SIZE = "com.appmindlab.nano.pref_working_set_size";
protected final static String PREF_LAB_MODE = "com.appmindlab.nano.pref_lab_mode";
protected final static String PREF_LAUNCHER_TAG = "com.appmindlab.nano.pref_launcher_tag";
protected final static String PREF_LAUNCHER_TAGS = "com.appmindlab.nano.pref_launcher_tags";

protected final static String[] ALL_PREFS = {
PREF_LOCAL_REPO_PATH,
Expand Down Expand Up @@ -156,7 +156,7 @@ public class Const {
PREF_PROCESS_TEXT_MODE,
PREF_WORKING_SET_SIZE,
PREF_LAB_MODE,
PREF_LAUNCHER_TAG
PREF_LAUNCHER_TAGS
};

// Boolean preferences
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/com/appmindlab/nano/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
private String mPreviewMode = Const.PREVIEW_AT_END;
private String mCustomDateFormat = "";
private int mProcessTextMode = Const.PROCESS_TEXT_DISABLED;
private String mLauncherTag = "";
private String mLauncherTags = "";

// Animation
private Animation mFadeIn, mFadeOut, mSlideUp, mSlideDown, mPushDownIn, mPushLeftIn, mPushLeftOut, mPushRightIn, mZoomIn, mBounce, mGrowFromMiddle;
Expand Down Expand Up @@ -4508,10 +4508,10 @@ protected void refreshDynamicShortcuts() {
ShortcutManagerCompat.removeAllDynamicShortcuts(getApplicationContext());

// Sanity check
if (mLauncherTag.length() == 0)
if (mLauncherTags.length() == 0)
return;

String parts[] = mLauncherTag.split(Const.LAUNCHER_TAG_DELIM);
String parts[] = mLauncherTags.split(Const.LAUNCHER_TAG_DELIM);
Intent intent;
ShortcutInfoCompat shortcut;

Expand Down Expand Up @@ -5004,7 +5004,7 @@ private void loadPref() {
mProcessTextMode = Integer.valueOf(mSharedPreferences.getString(Const.PREF_PROCESS_TEXT_MODE, String.valueOf(Const.PROCESS_TEXT_DISABLED)));
mMaxSyncLogFileSize = Integer.valueOf(mSharedPreferences.getString(Const.PREF_MAX_SYNC_LOG_FILE_SIZE, String.valueOf(Const.MAX_SYNC_LOG_FILE_SIZE))) * Const.ONE_KB;
mMaxSyncLogFileAge = Integer.valueOf(mSharedPreferences.getString(Const.PREF_MAX_SYNC_LOG_FILE_AGE, String.valueOf(Const.MAX_SYNC_LOG_FILE_AGE)));
mLauncherTag = mSharedPreferences.getString(Const.PREF_LAUNCHER_TAG, "");
mLauncherTags = mSharedPreferences.getString(Const.PREF_LAUNCHER_TAGS, "");
} catch (Exception e) {
e.printStackTrace();
}
Expand Down
3 changes: 0 additions & 3 deletions fastlane/metadata/android/en-US/changelogs/1320.txt

This file was deleted.

4 changes: 0 additions & 4 deletions fastlane/metadata/android/en-US/changelogs/1321.txt

This file was deleted.

2 changes: 0 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/1322.txt

This file was deleted.

3 changes: 0 additions & 3 deletions fastlane/metadata/android/en-US/changelogs/1323.txt

This file was deleted.

3 changes: 0 additions & 3 deletions fastlane/metadata/android/en-US/changelogs/1324.txt

This file was deleted.

2 changes: 0 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/1325.txt

This file was deleted.

2 changes: 0 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/1326.txt

This file was deleted.

2 changes: 0 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/1327.txt

This file was deleted.

3 changes: 0 additions & 3 deletions fastlane/metadata/android/en-US/changelogs/1328.txt

This file was deleted.

2 changes: 0 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/1329.txt

This file was deleted.

2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/1341.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v4.5.3
- Allows launcher shortcuts to be created for custom search filters.

0 comments on commit 3ecae6e

Please sign in to comment.