Skip to content

Commit

Permalink
added notification when data is enabled, previously the notification
Browse files Browse the repository at this point in the history
disappeared
  • Loading branch information
tobykurien committed Mar 24, 2015
1 parent 2a95bd4 commit 815d826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-21
target=android-22
android.library.reference.1=Widgets
6 changes: 6 additions & 0 deletions src/com/tobykurien/batteryfu/DataService.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ protected void onHandleIntent(Intent intent) {
// clear any previous notifications
nm.cancel(DataToggler.NOTIFICATION_CONNECTIVITY);

MainFunctions
.showNotification(
this,
settings,
this.getString(R.string.data_enabled_waiting_for_connection));

// enable wifi
if (settings.isWifiEnabled() && !settings.isTravelMode()) {
Log.i("BatteryFu", "DataToggler enabling WiFi");
Expand Down

0 comments on commit 815d826

Please sign in to comment.