Skip to content

Commit

Permalink
pre-release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eprst committed Aug 22, 2015
1 parent c09e2ac commit 98244dc
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.gradle
gradle
*.apk
*.patch
/local.properties
/.idea/workspace.xml
/.idea/libraries
Expand Down
12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ It has:
* Progress
* Due dates
* Text notes
* Widgets
* Widget
* Import/export
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ android {
applicationId "com.kos.ktodo"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionCode 29
versionName "2.0"
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/kos/ktodo/KTodo.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,14 @@ private void setupDrawer() {
@Override
public void onDrawerOpened(View drawerView) {
hideUndeleteButton(false);
hideSoftKeyboard(); // any way to hide it faster?
super.onDrawerOpened(drawerView);
}

@Override
public void onDrawerSlide(View drawerView, float slideOffset) {
hideUndeleteButton(false);
hideSoftKeyboard();
super.onDrawerSlide(drawerView, slideOffset);
}
};
Expand Down Expand Up @@ -322,7 +324,6 @@ private void invokeMenuAction(int position) {
public Unit call(final TodoItemsSortingMode arg) {
sortingMode = arg;
getLoaderManager().restartLoader(CURRENT_TAG_ITEMS_LOADER_ID, null, currentTagItemsLoaderCallbacks);
updateTitle();
return Unit.u;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class WidgetUpdateService extends Service implements Runnable {
private static boolean threadRunning = false;

public static void requestUpdate(final int[] appWidgetIds) {
Log.i(TAG, "requestUpdate: " + appWidgetIds.length);
//Log.i(TAG, "requestUpdate: " + appWidgetIds.length);
synchronized (lock) {
for (final int widgetId : appWidgetIds)
WidgetUpdateService.appWidgetIds.add(widgetId);
Expand Down Expand Up @@ -83,7 +83,7 @@ public void run() {
while (hasMoreUpdates()) {
final int widgetId = getNextUpdate();
final WidgetSettings s = settingsStorage.load(widgetId);
Log.i(TAG, "Updating widget " + widgetId + " " + s.configured);
//Log.i(TAG, "Updating widget " + widgetId + " " + s.configured);
if (!s.configured) continue;
final AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); // todo widget info not needed now?
if (widgetInfo != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ public RemoteViews getViewAt(int position) {
private static int getItemColor(final int defaultColor, final int completedColor,
final int dueTodayColor, final int expiredColor,
final TodoItem i) {
if (i.isDone()) return completedColor;

switch (Util.getDueStatus(i.getDueDate())) {
case EXPIRED:
return expiredColor;
case TODAY:
return dueTodayColor;
default:
if (i.isDone()) return completedColor;
return defaultColor;
}
}
Expand Down
Binary file added assets/featured graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/featured graphic.psd
Binary file not shown.
2 changes: 2 additions & 0 deletions issues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
[!] market
[ ]screenshot updates
[ ] big image
[ ] repeatable tasks (change due date to today+X days once task is marked as done)
[ ] 'tap zones' when settings->'click anywhere to check' is disabled: different zones to change prio/due date in one tap

known bugs:
[?] no app icon in title on 4.1, 4.2 devices (android bug?) | try using toolbar? | can be fixed by using appcompat, but it's ugly
Expand Down

0 comments on commit 98244dc

Please sign in to comment.