OSDN Git Service

内部整理中。
[gokigen/A01c.git] / wear / src / main / java / jp / sfjp / gokigen / a01c / liveview / button / PushedArea4.java
1 package jp.sfjp.gokigen.a01c.liveview.button;
2
3 import jp.sfjp.gokigen.a01c.IShowInformation;
4 import jp.sfjp.gokigen.a01c.ICameraFeatureDispatcher;
5
6 class PushedArea4 implements IPushedButton
7 {
8     private final ICameraFeatureDispatcher dispatcher;
9
10     PushedArea4(ICameraFeatureDispatcher dispatcher)
11     {
12         this.dispatcher = dispatcher;
13     }
14
15     @Override
16     public boolean pushedButton(boolean isLongClick)
17     {
18         int defaultAction = ICameraFeatureDispatcher.FEATURE_SETTINGS;
19         String preference_action_id = ICameraFeatureDispatcher.ACTION_AREA4 + ICameraFeatureDispatcher.ACTION_SECOND_CHOICE;
20         if (isLongClick)
21         {
22             return (dispatcher.dispatchAction(IShowInformation.AREA_4, preference_action_id, defaultAction));
23         }
24
25         // 設定画面を開く...
26         return (dispatcher.dispatchAction(IShowInformation.AREA_4, ICameraFeatureDispatcher.ACTION_AREA4, ICameraFeatureDispatcher.FEATURE_SETTINGS));
27     }
28 }