1 package com.example.android.wearable.wear.wearnotifications; 2 3 import android.app.Notification; 4 5 /** 6 * Controller used to instruct main activity to update {@link Notification} based on changes in 7 * the {@link CustomRecyclerAdapter} (item selected) which is tied to the 8 * {@link android.support.wearable.view.WearableRecyclerView}. 9 */ 10 11 public class Controller { 12 13 private StandaloneMainActivity mView; 14 Controller(StandaloneMainActivity standaloneMainActivity)15 Controller(StandaloneMainActivity standaloneMainActivity) { 16 mView = standaloneMainActivity; 17 } 18 itemSelected(String notificationStyleSelected)19 public void itemSelected(String notificationStyleSelected) { 20 mView.itemSelected(notificationStyleSelected); 21 } 22 }