diff --git a/app/app-release.apk b/app/app-release.apk
index 404372f..e4fb436 100644
Binary files a/app/app-release.apk and b/app/app-release.apk differ
diff --git a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/AppChoicesActivity.java b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/AppChoicesActivity.java
index 56a7a7a..097b9bc 100644
--- a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/AppChoicesActivity.java
+++ b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/AppChoicesActivity.java
@@ -84,6 +84,7 @@ protected void onPostExecute(Void result) {
setupAdapter();
}
}
+
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -237,14 +238,6 @@ private AppSelection getAppSelection(String appPackageName) {
private Void appListTask() {
List packages = Func.getInstalledPackages(mPackageManager);
- Collections.sort(packages, new Comparator() {
- @Override
- public int compare(ResolveInfo lhs, ResolveInfo rhs) {
- return String.CASE_INSENSITIVE_ORDER.compare(
- lhs.loadLabel(mPackageManager).toString(),
- rhs.loadLabel(mPackageManager).toString());
- }
- });
// getAppSelectionsSubList is also needed for the subsequent calls to contains()
List appSelections = mAppSelectionsStore.getAppSelections();
@@ -402,6 +395,12 @@ private class ActivityAdapter extends RecyclerView.Adapter {
public ActivityAdapter(List appSelectionsSubList) {
mAppSelectionsSubList = appSelectionsSubList;
+ Collections.sort(mAppSelectionsSubList, new Comparator() {
+ @Override
+ public int compare(AppSelection lhs, AppSelection rhs) {
+ return String.CASE_INSENSITIVE_ORDER.compare(lhs.getAppName(), rhs.getAppName());
+ }
+ });
}
@Override
diff --git a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/HomeActivity.java b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/HomeActivity.java
index 6dbec14..4d6439b 100644
--- a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/HomeActivity.java
+++ b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/HomeActivity.java
@@ -96,7 +96,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
if (mPreferences.getInt(getString(R.string.version_key), 0) < Constants.VERSION_CODE
- && mPreferences.getInt(getString(R.string.version_key), 0) > 0) {
+ && mPreferences.getBoolean(getString(R.string.done_first_launch_key), false)) {
// App has been updated
AppSelectionsStore store = AppSelectionsStore.get(this);
List appSelections = store.getAppSelections();
diff --git a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/setup/AppIntroActivity.java b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/setup/AppIntroActivity.java
index fe442a9..b3723bf 100644
--- a/app/src/main/java/com/abhijitvalluri/android/fitnotifications/setup/AppIntroActivity.java
+++ b/app/src/main/java/com/abhijitvalluri/android/fitnotifications/setup/AppIntroActivity.java
@@ -370,6 +370,12 @@ public void onClick(View v) {
setButtonNextFunction(BUTTON_NEXT_FUNCTION_NEXT_FINISH);
}
+ @Override
+ public void onBackPressed() {
+ super.onBackPressed();
+ overridePendingTransition(R.transition.right_in, R.transition.right_out);
+ }
+
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch(requestCode) {
diff --git a/app/src/main/res/layout-land/fragment_home.xml b/app/src/main/res/layout-land/fragment_home.xml
index 5d37921..9a69d41 100644
--- a/app/src/main/res/layout-land/fragment_home.xml
+++ b/app/src/main/res/layout-land/fragment_home.xml
@@ -2,69 +2,90 @@
+ android:layout_height="match_parent"
+ android:background="@color/white">
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
diff --git a/app/src/main/res/layout/activity_app_settings.xml b/app/src/main/res/layout/activity_app_settings.xml
index 43a0720..6614e33 100644
--- a/app/src/main/res/layout/activity_app_settings.xml
+++ b/app/src/main/res/layout/activity_app_settings.xml
@@ -1,93 +1,104 @@
-
+
-
-
-
-
+ android:orientation="vertical"
+ android:padding="@dimen/activity_padding"
+ android:descendantFocusability="beforeDescendants"
+ android:focusable="true"
+ android:focusableInTouchMode="true">
-
+
-
+
-
+
-
+
-
+
-
+
-
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:text="@string/schedule_heading"/>
+ android:text="@string/schedule_desc"/>
-
+ android:orientation="horizontal"
+ android:layout_marginLeft="16dp"
+ android:layout_marginRight="16dp"
+ style="?android:attr/buttonBarStyle">
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/app_select_list_item.xml b/app/src/main/res/layout/app_select_list_item.xml
index 27fd632..b3ea7d5 100644
--- a/app/src/main/res/layout/app_select_list_item.xml
+++ b/app/src/main/res/layout/app_select_list_item.xml
@@ -34,7 +34,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:background="@null"
+ android:background="?attr/selectableItemBackground"
android:src="@drawable/ic_settings_black_24dp"
android:alpha="0.5"/>
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index a6078c5..434c3bc 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -2,69 +2,90 @@
+ android:layout_height="match_parent"
+ android:background="@color/white">
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
-
-
+ android:orientation="vertical"
+ android:background="@drawable/bottom_gray_border">
+
+
diff --git a/app/src/main/res/layout/fragment_info.xml b/app/src/main/res/layout/fragment_info.xml
index 9476d33..b52177b 100644
--- a/app/src/main/res/layout/fragment_info.xml
+++ b/app/src/main/res/layout/fragment_info.xml
@@ -3,21 +3,15 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
+ android:background="@color/white"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- android:background="@color/white"
tools:context=".InfoFragment">
+ android:textSize="16sp">
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index da1bfb6..6481de4 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -300,6 +300,10 @@
We will attempt to resolve this issue in an update.
]]>
Bug fixes in version 2.7.1:
+
+ Fixed bugs in Notification Schedule app setting and other general bug fixes and UI improvements.
+
Changes in version 2.7 : New per app settings!
You can now filter notifications from each enabled app so that notifications that contain certain text in them will not be forwarded to your Fitbit device.
@@ -308,7 +312,7 @@
At other times, you will not be disturbed.
- To enable these new settings, go to the \'App Setup\' option on the main screen and click the \'gear\' icon next to the app name.
+ To enable these new settings, go to the \'Setup Apps\' option on the main screen and click the \'gear\' icon next to the app name.
]]>