}
}
public static AppItem[] getCurrentSystemAppListConfig() {
+ String launchername=sysProperties.get("persist.sys.launchername","ak");
switch (productType){
case 1001:
- return AK_APP_LIST;
+ if(launchername.equals("ak"))
+ return AK_APP_LIST;
+ else if(launchername.equals("ak2"))
+ return AK2_APP_LIST;
case 1002:
return A9_APP_LIST;
case 1003:
}
}
+ private final static AppItem[] AK2_APP_LIST = new AppItem[]{
+// new AppItem(R.string.app_title_living_home, R.mipmap.ak_app_icon_hotline,3,
+// null, null,
+// null, null),
+ new AppItem(R.string.app_title_dial, R.mipmap.ak_app_icon_dial,4,
+ null, null,
+ "com.ic.dial", "com.ic.dial.MainActivity"),
+ new AppItem(R.string.app_title_call_records, R.mipmap.ak_app_icon_call_records,15,
+ null, null,
+ "com.yjsoft.phonelog", "com.yjsoft.phonelog.MainActivity"),
+ new AppItem(R.string.app_title_message, R.mipmap.ak_app_icon_message,5,
+ null, null,
+ "com.ic.message", "com.ic.message.MainActivity"),
+ new AppItem(R.string.app_title_pedometer, R.mipmap.ak_app_icon_walk,6,
+ null, null,
+ "com.ic.ak.hardware", "com.ic.ak.hardware.ui.PedometerActivity"),
+ new AppItem(R.string.app_title_health, R.mipmap.ak_app_icon_healthy,7,
+ null, null,
+ "com.ic.ak.hardware", "com.ic.ak.hardware.ui.BloodActivity"),
+ new AppItem(R.string.app_title_sleep, R.mipmap.ak_app_icon_sleep,8,
+ null, null,
+ "com.ic.ak.hardware", "com.ic.ak.hardware.ui.SleepActivity"),
+ new AppItem(R.string.app_title_sedentary, R.mipmap.ak_app_icon_sedentary,9,
+ null, null,
+ "com.ic.ak.hardware", "com.ic.ak.hardware.ui.SedentaryActivity"),
+ new AppItem(R.string.app_title_camera, R.mipmap.ak_app_icon_camera,10,
+ null, null,
+ "com.eqc.camera", "com.eqc.camera.TakePictureActivity"),
+ new AppItem(R.string.app_title_album, R.mipmap.ak_app_icon_album,11,
+ null, null,
+ "com.eqc.gallery", "com.eqc.gallery.ui.LocalAlbumDetail"),
+ /**new AppItem(R.string.app_title_alipay, R.mipmap.ak_app_icon_alipay,12,
+ null, null,
+ "com.eg.android.AlipayGphone", "com.alipay.watch.ui.MainActivity"),**/
+ new AppItem(R.string.app_title_dev_bind, R.mipmap.ak_app_icon_app_bind,13,
+ null, null,
+ "com.ic.ak.hardware", "com.ic.ak.hardware.ui.AppBindActivity"),
+ new AppItem(R.string.app_title_setting, R.mipmap.ak_app_icon_setting,14,
+ null, null,
+ "com.ic.setting", "com.ic.setting.MainActivity")
+ };
+
private final static AppItem[] AK_APP_LIST = new AppItem[]{
new AppItem(R.string.app_title_living_home, R.mipmap.ak_app_icon_hotline,3,
null, null,
import com.ic.ak.launcher.ui.dialog.AlertDialogManage;
import com.ic.ak.launcher.ui.dialog.ShowDialogEvent;
import com.ic.ak.launcher.util.ServiceUtil;
+import com.ic.ak.launcher.util.sysProperties;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
private FragmentAdapter ftAdapter;
private IndicatorAdapter indicatorAdapter;
-
+ private static String launchername= sysProperties.get("persist.sys.launchername","ak");
private LauncherApp mApp;
private SoundPlayUtils soundPlayUtils;
if (BuildConfig.productType == 1001) {
int playId = mApp.getAppDispose().getAppItemPlayItem(position);
if (playId != -1) {
- int value = Settings.System.getInt(getContentResolver(), "ak_app_play_voice", 0);
- if (value == 1001) {
- soundPlayUtils.playKeyboardSound(getApplicationContext(), playId);
+ if(launchername.equals("ak")) {
+ int value = Settings.System.getInt(getContentResolver(), "ak_app_play_voice", 0);
+ if (value == 1001) {
+ soundPlayUtils.playKeyboardSound(getApplicationContext(), playId);
+ }
}
}
}