Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b0440b10 authored by Joey Rizzoli's avatar Joey Rizzoli
Browse files

FMRadio: set notification actions text



Change-Id: I425bc065f74e89b070ae3b4f4cd4fb362f8c04de
Signed-off-by: default avatarJoey Rizzoli <joey@cyanogenmoditalia.it>
parent 1f5e9458
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2016 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <string name="notif_previous">Previous</string>
    <string name="notif_stop">Stop</string>
    <string name="notif_next">Next</string>
</resources>
+6 −3
Original line number Diff line number Diff line
@@ -1826,15 +1826,18 @@ public class FmService extends Service implements FmRecorder.OnRecorderStateChan
            Intent intent = new Intent(FM_SEEK_PREVIOUS);
            intent.setClass(mContext, FmService.class);
            PendingIntent pIntent = PendingIntent.getService(mContext, 0, intent, 0);
            mNotificationBuilder.addAction(R.drawable.btn_fm_prevstation, "", pIntent);
            mNotificationBuilder.addAction(R.drawable.btn_fm_prevstation,
                    getString(R.string.notif_previous), pIntent);
            intent = new Intent(FM_TURN_OFF);
            intent.setClass(mContext, FmService.class);
            pIntent = PendingIntent.getService(mContext, 0, intent, 0);
            mNotificationBuilder.addAction(R.drawable.btn_fm_rec_stop_enabled, "", pIntent);
            mNotificationBuilder.addAction(R.drawable.btn_fm_rec_stop_enabled,
                    getString(R.string.notif_stop), pIntent);
            intent = new Intent(FM_SEEK_NEXT);
            intent.setClass(mContext, FmService.class);
            pIntent = PendingIntent.getService(mContext, 0, intent, 0);
            mNotificationBuilder.addAction(R.drawable.btn_fm_nextstation, "", pIntent);
            mNotificationBuilder.addAction(R.drawable.btn_fm_nextstation,
                    getString(R.string.notif_next) , pIntent);
        }
        mNotificationBuilder.setContentIntent(pAIntent);
        Bitmap largeIcon = FmUtils.createNotificationLargeIcon(mContext,