kopia lustrzana https://github.com/xdsopl/robot36
Use 2-arg constructor
rodzic
b7f14debb0
commit
2ed7235057
|
@ -71,7 +71,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
private void showNotification() {
|
private void showNotification() {
|
||||||
Intent intent = new Intent(this, MainActivity.class);
|
Intent intent = new Intent(this, MainActivity.class);
|
||||||
PendingIntent pending = PendingIntent.getActivity(this, 0, intent, 0);
|
PendingIntent pending = PendingIntent.getActivity(this, 0, intent, 0);
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "Robot36")
|
||||||
.setSmallIcon(R.drawable.ic_notification)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
|
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
|
|
Ładowanie…
Reference in New Issue