Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Fixed InfoActivity launching incorrectly, updated Gradle wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
lwis committed Jul 27, 2015
1 parent 95c9b80 commit 9192266
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ android {

defaultConfig {
applicationId "com.lewisjuggins.miband"
versionCode 1
versionName "1.0"
minSdkVersion 19
versionCode 3
versionName "1.2"
minSdkVersion 21
targetSdkVersion 22
}

Expand Down Expand Up @@ -48,7 +48,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0-beta1'
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.10.1'
}
}
Expand All @@ -73,5 +73,5 @@ dependencies {
}

task wrapper(type: Wrapper) {
gradleVersion = '2.4'
gradleVersion = '2.5'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Mar 24 09:30:28 GMT 2015
#Mon Jul 27 16:54:49 BST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
3 changes: 1 addition & 2 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Expand All @@ -38,8 +39,6 @@
android:exported="true"
tools:ignore="ExportedActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.INFO" />
</intent-filter>
</activity>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/lewisjuggins/miband/ui/InfoActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void onCreate(final Bundle savedInstanceState)

try
{
//startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(String.format(Locale.US, APP_STORE_URI, "com.twofortyfouram.locale", getPackageName()))).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); //$NON-NLS-1$
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(String.format(Locale.US, APP_STORE_URI, "com.twofortyfouram.locale", getPackageName()))).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); //$NON-NLS-1$
}
catch (final Exception e)
{
Expand Down

2 comments on commit 9192266

@flyingrub
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've recreated the app from scratch, based on yours : https://github.com/flyingrub/MiBand-Notify.
There is only one service running in the background and no need for your billion of intent/broadcastreceiver :).

@lwis
Copy link
Owner Author

@lwis lwis commented on 9192266 Jul 27, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.