Merge pull request #181 from iHub/bugfixes

Merging in bugfixes
This commit is contained in:
Brian Mwadime 2016-07-18 08:50:42 +03:00 коммит произвёл GitHub
Родитель 0a34f5ae86 3cdc28e36f
Коммит abbcc19372
5 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -42,11 +42,14 @@ public class App extends Application {
// Actions are just fake
Notification notification = new NotificationCompat.Builder(getContext())
.setContentTitle(getContext().getString(R.string.app_name))
.setContentText("Tap for more information.")
.setStyle(new NotificationCompat.BigTextStyle().bigText(msg))
.setSmallIcon(R.drawable.ic_launcher)
.setColor(getContext().getResources().getColor(R.color.colorPrimary))
.setSmallIcon(R.drawable.ic_stat_notification)
.setContentIntent(pIntent)
.setAutoCancel(true)
.addAction(0, getContext().getString(R.string.btn_more), pIntent).build();
.addAction(0, getContext().getString(R.string.btn_more), pIntent)
.build();
NotificationManager notificationManager = (NotificationManager) getContext().getSystemService(NOTIFICATION_SERVICE);
// hide the notification after its selected
notification.flags |= Notification.FLAG_AUTO_CANCEL;

Просмотреть файл

@ -20,7 +20,7 @@ import com.mozilla.hackathon.kiboko.utilities.NetworkUtils;
NetworkInfo ni=(NetworkInfo) intent.getExtras().get(ConnectivityManager.EXTRA_NETWORK_INFO);
if(ni!=null && ni.getState()==NetworkInfo.State.CONNECTED)
{
App.createNotification("Your device is now connected to wifi.", "wifi");
App.createNotification("Your device is now connected to Wi-Fi.", "wifi");
}
}
}

Двоичные данные
app/src/main/res/drawable-xxhdpi/ic_stat_notification.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 14 KiB

Просмотреть файл

@ -50,6 +50,6 @@
<string name="welcome_surtitle">Welcome to</string>
<string name="welcome_title">Jisort!</string>
<string name="welcome_description">Explore the topics in this app to learn more about your phone.</string>
<string name="welcome_button">Ok\! Let\'s go\!</string>
<string name="welcome_button">Ok! Let\'s go!</string>
<string name="title_dashboard">Jisort - What would you like to do?</string>
</resources>

Просмотреть файл

@ -14,7 +14,7 @@
# If versions end in odd numbers they are development builds, even versions are release candidates.
# The AndroidManifest.xml must also be updated currently.
org.gradle.jvmargs=-Xmx2048M
version=0.2.5-SNAPSHOT
version=0.2.6-SNAPSHOT
# Using these variables to sync dependency version numbers across sub-projects.
android_support_lib_version = 23.4.0