always show notification, even when in foreground

pull/6/head
Ahmet Inan 2014-12-18 13:59:55 +01:00
rodzic cfe3f35aad
commit 8d7b0e0f50
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -104,6 +104,7 @@ public class MainActivity extends Activity {
view = (ImageView)findViewById(R.id.image);
view.activity = this;
manager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
showNotification();
}
@Override
@ -116,14 +117,12 @@ public class MainActivity extends Activity {
@Override
protected void onPause() {
view.pause();
showNotification();
super.onPause();
}
@Override
protected void onResume() {
view.resume();
manager.cancel(notifyID);
super.onResume();
}