mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 23:27:55 +03:00
Upgrade gradle and fix uncategorized list widget
This commit is contained in:
parent
753458e3a5
commit
b758f72ddf
3 changed files with 9 additions and 5 deletions
|
@ -97,7 +97,11 @@ public class NoteListWidgetConfigurationActivity extends LockedActivity {
|
|||
data.setMode(MODE_DISPLAY_STARRED);
|
||||
break;
|
||||
}
|
||||
case UNCATEGORIZED:
|
||||
case UNCATEGORIZED: {
|
||||
data.setMode(MODE_DISPLAY_CATEGORY);
|
||||
data.setCategoryId(null);
|
||||
}
|
||||
case DEFAULT_CATEGORY:
|
||||
default: {
|
||||
if (item.getClass() == NavigationItem.CategoryNavigationItem.class) {
|
||||
data.setMode(MODE_DISPLAY_CATEGORY);
|
||||
|
@ -145,7 +149,7 @@ public class NoteListWidgetConfigurationActivity extends LockedActivity {
|
|||
items.add(new NavigationItem(MainActivity.ADAPTER_KEY_STARRED, getString(R.string.label_favorites), db.getNoteDao().getFavoritesCount(localAccount.getId()), R.drawable.ic_star_yellow_24dp, FAVORITES));
|
||||
|
||||
if (categories.size() > 2 && categories.get(2).label.isEmpty()) {
|
||||
items.add(new NavigationItem(MainActivity.ADAPTER_KEY_UNCATEGORIZED, getString(R.string.action_uncategorized), null, NavigationAdapter.ICON_NOFOLDER));
|
||||
items.add(new NavigationItem(MainActivity.ADAPTER_KEY_UNCATEGORIZED, "", null, NavigationAdapter.ICON_NOFOLDER));
|
||||
}
|
||||
|
||||
for (NavigationItem item : categories) {
|
||||
|
|
|
@ -8,7 +8,7 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
apply plugin: 'maven'
|
||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
|||
#Thu May 28 21:13:34 CEST 2020
|
||||
#Tue Oct 13 09:03:54 CEST 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
|
||||
|
|
Loading…
Reference in a new issue