blob: 0c33974f1375bcfb997f11a40ddd8abda57ffcc4 [file] [log] [blame]
Michael Chan49701592010-06-30 11:04:03 -07001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.calendar;
18
Erikdd95df52010-08-27 09:31:18 -070019import static android.provider.Calendar.EVENT_BEGIN_TIME;
20import static android.provider.Calendar.EVENT_END_TIME;
21
Michael Chan83b0fe32010-07-08 16:46:26 -070022import com.android.calendar.CalendarController.EventHandler;
Michael Chanab29d9e2010-07-21 06:08:47 -070023import com.android.calendar.CalendarController.EventInfo;
Michael Chan83b0fe32010-07-08 16:46:26 -070024import com.android.calendar.CalendarController.EventType;
Michael Chan3458a172010-07-13 17:58:21 -070025import com.android.calendar.CalendarController.ViewType;
Mason Tang00b8c1a2010-08-23 12:02:00 -070026import com.android.calendar.agenda.AgendaFragment;
Erikdd95df52010-08-27 09:31:18 -070027import com.android.calendar.event.EditEventFragment;
Mason Tang9a3cb142010-07-27 12:16:41 -070028import com.android.calendar.selectcalendars.SelectCalendarsFragment;
Michael Chan83b0fe32010-07-08 16:46:26 -070029
Michael Chanab29d9e2010-07-21 06:08:47 -070030import android.app.ActionBar;
Michael Chan49701592010-06-30 11:04:03 -070031import android.app.Activity;
Michael Chan83b0fe32010-07-08 16:46:26 -070032import android.app.Fragment;
Michael Chan3458a172010-07-13 17:58:21 -070033import android.app.FragmentTransaction;
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -070034import android.app.SearchManager;
35import android.app.SearchableInfo;
Erik954c8712010-08-06 10:12:34 -070036import android.content.ContentResolver;
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -070037import android.content.Context;
Erikdd95df52010-08-27 09:31:18 -070038import android.content.Intent;
Mason Tang8e3d4302010-07-12 17:39:30 -070039import android.content.SharedPreferences;
40import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
Michael Chanab29d9e2010-07-21 06:08:47 -070041import android.content.res.Configuration;
Erik954c8712010-08-06 10:12:34 -070042import android.database.ContentObserver;
Erikdd95df52010-08-27 09:31:18 -070043import android.net.Uri;
Michael Chan49701592010-06-30 11:04:03 -070044import android.os.Bundle;
Erik954c8712010-08-06 10:12:34 -070045import android.os.Handler;
46import android.provider.Calendar;
Michael Chan3458a172010-07-13 17:58:21 -070047import android.text.format.DateUtils;
Michael Chan83b0fe32010-07-08 16:46:26 -070048import android.text.format.Time;
Erik954c8712010-08-06 10:12:34 -070049import android.util.Log;
Erik2051f122010-07-02 13:45:45 -070050import android.view.Menu;
Michael Chan3458a172010-07-13 17:58:21 -070051import android.view.MenuItem;
Michael Chanab29d9e2010-07-21 06:08:47 -070052import android.view.View;
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -070053import android.widget.SearchView;
Michael Chan49701592010-06-30 11:04:03 -070054
Michael Chanab29d9e2010-07-21 06:08:47 -070055public class AllInOneActivity extends Activity implements EventHandler,
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -070056 OnSharedPreferenceChangeListener, SearchView.OnQueryChangeListener {
Michael Chand6734db2010-07-22 00:48:08 -070057 private static final String TAG = "AllInOneActivity";
Erik954c8712010-08-06 10:12:34 -070058 private static final boolean DEBUG = false;
Michael Chand6734db2010-07-22 00:48:08 -070059 private static final String BUNDLE_KEY_RESTORE_TIME = "key_restore_time";
Erik3f348f32010-08-10 13:17:19 -070060 private static final int HANDLER_KEY = 0;
Michael Chan0558def2010-07-22 21:30:32 -070061 private static CalendarController mController;
Erik9fc409f2010-07-28 11:40:47 -070062 private static boolean mIsMultipane;
Erik954c8712010-08-06 10:12:34 -070063 private ContentResolver mContentResolver;
Erik648c59c2010-08-13 12:49:26 -070064 private int mPreviousView;
65 private int mCurrentView;
Erik954c8712010-08-06 10:12:34 -070066
67 // Create an observer so that we can update the views whenever a
68 // Calendar event changes.
69 private ContentObserver mObserver = new ContentObserver(new Handler())
70 {
71 @Override
72 public boolean deliverSelfNotifications() {
73 return true;
74 }
75
76 @Override
77 public void onChange(boolean selfChange) {
78 eventsChanged();
79 }
80 };
Michael Chan83b0fe32010-07-08 16:46:26 -070081
Michael Chan49701592010-06-30 11:04:03 -070082 @Override
Michael Chan83b0fe32010-07-08 16:46:26 -070083 protected void onCreate(Bundle icicle) {
84 super.onCreate(icicle);
85
86 // This needs to be created before setContentView
Michael Chan0558def2010-07-22 21:30:32 -070087 mController = CalendarController.getInstance(this);
Erik954c8712010-08-06 10:12:34 -070088 // Get time from intent or icicle
89 long timeMillis;
90 if (icicle != null) {
91 timeMillis = icicle.getLong(BUNDLE_KEY_RESTORE_TIME);
92 } else {
93 timeMillis = Utils.timeFromIntentInMillis(getIntent());
94 }
95 int viewType = Utils.getViewTypeFromIntentAndSharedPref(this);
96 Time t = new Time();
97 t.set(timeMillis);
98
Erik9fc409f2010-07-28 11:40:47 -070099 mIsMultipane = (getResources().getConfiguration().screenLayout &
100 Configuration.SCREENLAYOUT_SIZE_XLARGE) != 0;
101
Erik3f348f32010-08-10 13:17:19 -0700102 // Must be the first to register because this activity can modify the
103 // list of event handlers in it's handle method. This affects who the
104 // rest of the handlers the controller dispatches to are.
105 mController.registerEventHandler(HANDLER_KEY, this);
Michael Chan83b0fe32010-07-08 16:46:26 -0700106
Michael Chan49701592010-06-30 11:04:03 -0700107 setContentView(R.layout.all_in_one);
Michael Chan83b0fe32010-07-08 16:46:26 -0700108
Erik954c8712010-08-06 10:12:34 -0700109 initFragments(timeMillis, viewType);
Mason Tang8e3d4302010-07-12 17:39:30 -0700110
111 // Listen for changes that would require this to be refreshed
Daisuke Miyakawa4b441bd2010-09-16 14:55:36 -0700112 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(this);
Mason Tang8e3d4302010-07-12 17:39:30 -0700113 prefs.registerOnSharedPreferenceChangeListener(this);
Erik954c8712010-08-06 10:12:34 -0700114 mContentResolver = getContentResolver();
115 }
116
117 @Override
118 protected void onResume() {
119 super.onResume();
120 mContentResolver.registerContentObserver(Calendar.Events.CONTENT_URI, true, mObserver);
Mason Tang8e3d4302010-07-12 17:39:30 -0700121 }
122
123 @Override
Michael Chand6734db2010-07-22 00:48:08 -0700124 protected void onPause() {
125 super.onPause();
Erik954c8712010-08-06 10:12:34 -0700126 mContentResolver.unregisterContentObserver(mObserver);
Michael Chand6734db2010-07-22 00:48:08 -0700127 //FRAG_TODO save highlighted days of the week;
Erikdd95df52010-08-27 09:31:18 -0700128 if (mController.getViewType() != ViewType.EDIT) {
129 Utils.setDefaultView(this, mController.getViewType());
130 }
Michael Chand6734db2010-07-22 00:48:08 -0700131 }
132
133 @Override
134 public void onSaveInstanceState(Bundle outState) {
135 super.onSaveInstanceState(outState);
136
137 outState.putLong(BUNDLE_KEY_RESTORE_TIME, mController.getTime());
138 }
139
140 @Override
Mason Tang8e3d4302010-07-12 17:39:30 -0700141 protected void onDestroy() {
142 super.onDestroy();
143
Daisuke Miyakawa4b441bd2010-09-16 14:55:36 -0700144 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(this);
Mason Tang8e3d4302010-07-12 17:39:30 -0700145 prefs.unregisterOnSharedPreferenceChangeListener(this);
Eriked61b482010-08-13 13:59:50 -0700146 CalendarController.removeInstance(this);
Mason Tang8e3d4302010-07-12 17:39:30 -0700147 }
148
Michael Chand6734db2010-07-22 00:48:08 -0700149 private void initFragments(long timeMillis, int viewType) {
Mason Tang1d564f62010-08-20 14:44:20 -0700150 FragmentTransaction ft = getFragmentManager().openTransaction();
Michael Chan3458a172010-07-13 17:58:21 -0700151
Erik9fc409f2010-07-28 11:40:47 -0700152 if (mIsMultipane) {
Erikc7003b42010-07-27 13:25:20 -0700153 Fragment miniMonthFrag = new MonthFragment(false, timeMillis, true);
Michael Chanab29d9e2010-07-21 06:08:47 -0700154 ft.replace(R.id.mini_month, miniMonthFrag);
Erik3f348f32010-08-10 13:17:19 -0700155 mController.registerEventHandler(R.id.mini_month, (EventHandler) miniMonthFrag);
Michael Chanab29d9e2010-07-21 06:08:47 -0700156
157 Fragment selectCalendarsFrag = new SelectCalendarsFragment();
158 ft.replace(R.id.calendar_list, selectCalendarsFrag);
Erikdd95df52010-08-27 09:31:18 -0700159 }
160 if (!mIsMultipane || viewType == ViewType.EDIT){
Michael Chanab29d9e2010-07-21 06:08:47 -0700161 findViewById(R.id.mini_month).setVisibility(View.GONE);
162 findViewById(R.id.calendar_list).setVisibility(View.GONE);
163 }
Michael Chan3458a172010-07-13 17:58:21 -0700164
Erikdd95df52010-08-27 09:31:18 -0700165 EventInfo info = null;
166 if (viewType == ViewType.EDIT) {
Daisuke Miyakawa4b441bd2010-09-16 14:55:36 -0700167 mPreviousView = GeneralPreferences.getSharedPreferences(this).getInt(
168 GeneralPreferences.KEY_START_VIEW,
169 GeneralPreferences.DEFAULT_START_VIEW);
Erikdd95df52010-08-27 09:31:18 -0700170
171 int eventId = -1;
172 Intent intent = getIntent();
173 Uri data = intent.getData();
174 if (data != null) {
175 try {
176 eventId = Integer.parseInt(data.getLastPathSegment());
177 } catch (NumberFormatException e) {
178 if (DEBUG) {
179 Log.d(TAG, "Create new event");
180 }
181 }
182 }
183 long begin = intent.getLongExtra(EVENT_BEGIN_TIME, -1);
184 long end = intent.getLongExtra(EVENT_END_TIME, -1);
185 info = new EventInfo();
186 if (end != -1) {
187 info.endTime = new Time();
188 info.endTime.set(end);
189 }
190 if (begin != -1) {
191 info.startTime = new Time();
192 info.startTime.set(begin);
193 }
194 info.id = eventId;
195 // We set the viewtype so if the user presses back when they are
196 // done editing the controller knows we were in the Edit Event
197 // screen.
198 mController.setViewType(viewType);
199 } else {
200 mPreviousView = viewType;
201 }
202 setMainPane(ft, R.id.main_pane, viewType, timeMillis, true, info);
Michael Chan3458a172010-07-13 17:58:21 -0700203
204 ft.commit(); // this needs to be after setMainPane()
205
Michael Chand6734db2010-07-22 00:48:08 -0700206 Time t = new Time();
207 t.set(timeMillis);
Erikdd95df52010-08-27 09:31:18 -0700208 if (viewType != ViewType.EDIT) {
209 mController.sendEvent(this, EventType.GO_TO, t, null, -1, viewType);
210 }
Michael Chan49701592010-06-30 11:04:03 -0700211 }
Erik2051f122010-07-02 13:45:45 -0700212
213 @Override
Erik648c59c2010-08-13 12:49:26 -0700214 public void onBackPressed() {
215 if (mPreviousView == mCurrentView) {
216 super.onBackPressed();
217 } else {
Erikdd95df52010-08-27 09:31:18 -0700218 mController.sendEvent(this, EventType.GO_TO, null, null, -1, mPreviousView);
Erik648c59c2010-08-13 12:49:26 -0700219 }
220 }
221
222 @Override
Erik2051f122010-07-02 13:45:45 -0700223 public boolean onCreateOptionsMenu(Menu menu) {
224 super.onCreateOptionsMenu(menu);
225
Erik2051f122010-07-02 13:45:45 -0700226 getMenuInflater().inflate(R.menu.all_in_one_title_bar, menu);
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -0700227
228 SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();
229 searchView.setIconifiedByDefault(true);
230 searchView.setOnQueryChangeListener(this);
231
Erik2051f122010-07-02 13:45:45 -0700232 return true;
233 }
Michael Chan3458a172010-07-13 17:58:21 -0700234
235 @Override
236 public boolean onOptionsItemSelected(MenuItem item) {
237 Time t = null;
238 int viewType = ViewType.CURRENT;
239 switch (item.getItemId()) {
Erikba1b94a2010-07-20 17:50:50 -0700240 case R.id.action_refresh:
241 mController.refreshCalendars();
242 return true;
Michael Chan3458a172010-07-13 17:58:21 -0700243 case R.id.action_day:
244 viewType = ViewType.DAY;
245 break;
246 case R.id.action_week:
247 viewType = ViewType.WEEK;
248 break;
249 case R.id.action_month:
250 viewType = ViewType.MONTH;
251 break;
252 case R.id.action_today:
253 viewType = ViewType.CURRENT;
254 t = new Time();
255 t.setToNow();
256 break;
257 case R.id.action_create_event:
258 mController.sendEventRelatedEvent(this, EventType.CREATE_EVENT, -1, 0, 0, 0, 0);
259 return true;
Michael Chan2c477fc2010-07-15 18:26:50 -0700260 case R.id.action_manage_calendars:
261 mController.sendEvent(this, EventType.LAUNCH_MANAGE_CALENDARS, null, null, 0, 0);
262 return true;
Michael Chanab29d9e2010-07-21 06:08:47 -0700263 case R.id.action_settings:
264 mController.sendEvent(this, EventType.LAUNCH_SETTINGS, null, null, 0, 0);
265 return true;
Michael Chan3458a172010-07-13 17:58:21 -0700266 default:
267 return false;
268 }
Michael Chanab29d9e2010-07-21 06:08:47 -0700269 mController.sendEvent(this, EventType.GO_TO, t, null, -1, viewType);
Michael Chan3458a172010-07-13 17:58:21 -0700270 return true;
271 }
Mason Tang8e3d4302010-07-12 17:39:30 -0700272
273 @Override
274 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
Daisuke Miyakawa4b441bd2010-09-16 14:55:36 -0700275 if (key.equals(GeneralPreferences.KEY_WEEK_START_DAY)) {
Michael Chand6734db2010-07-22 00:48:08 -0700276 initFragments(mController.getTime(), mController.getViewType());
Mason Tang8e3d4302010-07-12 17:39:30 -0700277 }
278 }
Michael Chanab29d9e2010-07-21 06:08:47 -0700279
280 private void setMainPane(FragmentTransaction ft, int viewId, int viewType,
Erikdd95df52010-08-27 09:31:18 -0700281 long timeMillis, boolean force, EventInfo e) {
282 if(!force && mCurrentView == viewType) {
Michael Chanab29d9e2010-07-21 06:08:47 -0700283 return;
284 }
285
Erik648c59c2010-08-13 12:49:26 -0700286 if (viewType != mCurrentView) {
287 // The rules for this previous view are different than the
288 // controller's and are used for intercepting the back button.
Erikdd95df52010-08-27 09:31:18 -0700289 if (mCurrentView != ViewType.EDIT && mCurrentView > 0) {
290 mPreviousView = mCurrentView;
291 }
Erik648c59c2010-08-13 12:49:26 -0700292 mCurrentView = viewType;
293 }
Erik3f348f32010-08-10 13:17:19 -0700294 // Create new fragment
295 Fragment frag;
Michael Chanab29d9e2010-07-21 06:08:47 -0700296 switch (viewType) {
297 case ViewType.AGENDA:
Mason Tang31df4262010-07-19 17:51:46 -0700298 frag = new AgendaFragment(timeMillis);
Michael Chanab29d9e2010-07-21 06:08:47 -0700299 break;
300 case ViewType.DAY:
Michael Chan75d9b562010-07-26 16:54:25 -0700301 frag = new DayFragment(timeMillis, 1);
302 break;
Michael Chanab29d9e2010-07-21 06:08:47 -0700303 case ViewType.WEEK:
Michael Chan75d9b562010-07-26 16:54:25 -0700304 frag = new DayFragment(timeMillis, 7);
Michael Chanab29d9e2010-07-21 06:08:47 -0700305 break;
306 case ViewType.MONTH:
Erikc7003b42010-07-27 13:25:20 -0700307 frag = new MonthFragment(false, timeMillis, false);
Michael Chanab29d9e2010-07-21 06:08:47 -0700308 break;
Erikdd95df52010-08-27 09:31:18 -0700309 case ViewType.EDIT:
310 frag = new EditEventFragment(e, mPreviousView);
311 break;
Michael Chanab29d9e2010-07-21 06:08:47 -0700312 default:
Michael Chand6734db2010-07-22 00:48:08 -0700313 throw new IllegalArgumentException(
314 "Must be Agenda, Day, Week, or Month ViewType, not " + viewType);
Michael Chanab29d9e2010-07-21 06:08:47 -0700315 }
316
317 boolean doCommit = false;
318 if (ft == null) {
319 doCommit = true;
Mason Tang1d564f62010-08-20 14:44:20 -0700320 ft = getFragmentManager().openTransaction();
Michael Chanab29d9e2010-07-21 06:08:47 -0700321 }
322
323 ft.replace(viewId, frag);
Erik954c8712010-08-06 10:12:34 -0700324 if (DEBUG) {
325 Log.d(TAG, "Adding handler with viewId " + viewId + " and type " + viewType);
326 }
Erik3f348f32010-08-10 13:17:19 -0700327 // If the key is already registered this will replace it
328 mController.registerEventHandler(viewId, (EventHandler) frag);
Michael Chanab29d9e2010-07-21 06:08:47 -0700329
330 if (doCommit) {
331 ft.commit();
332 }
333 }
334
335 private void setTitleInActionBar(EventInfo event) {
336 if (event.eventType != EventType.GO_TO) {
337 return;
338 }
339
340 long start = event.startTime.toMillis(false /* use isDst */);
341 long end = start;
342
Michael Chand6734db2010-07-22 00:48:08 -0700343 if (event.endTime != null) {
Michael Chanab29d9e2010-07-21 06:08:47 -0700344 end = event.endTime.toMillis(false /* use isDst */);
345 }
346 String msg = DateUtils.formatDateRange(this, start, end, DateUtils.FORMAT_SHOW_DATE);
347
348 ActionBar ab = getActionBar();
349 if (ab != null) {
350 ab.setTitle(msg);
351 }
352 }
353
Erik3f348f32010-08-10 13:17:19 -0700354 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700355 public long getSupportedEventTypes() {
Erikdd95df52010-08-27 09:31:18 -0700356 return EventType.GO_TO | EventType.VIEW_EVENT | EventType.EDIT_EVENT |
357 EventType.CREATE_EVENT;
Michael Chanab29d9e2010-07-21 06:08:47 -0700358 }
359
Erik3f348f32010-08-10 13:17:19 -0700360 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700361 public void handleEvent(EventInfo event) {
362 if (event.eventType == EventType.GO_TO) {
363 // Set title bar
364 setTitleInActionBar(event);
365
366 setMainPane(null, R.id.main_pane, event.viewType,
Erikdd95df52010-08-27 09:31:18 -0700367 event.startTime.toMillis(false), false, event);
Michael Chanab29d9e2010-07-21 06:08:47 -0700368
Erik9fc409f2010-07-28 11:40:47 -0700369 if (!mIsMultipane) {
370 return;
371 }
Michael Chanab29d9e2010-07-21 06:08:47 -0700372 if (event.viewType == ViewType.MONTH) {
373 // hide minimonth and calendar frag
Erik9fc409f2010-07-28 11:40:47 -0700374 findViewById(R.id.mini_month).setVisibility(View.GONE);
375 findViewById(R.id.calendar_list).setVisibility(View.GONE);
Michael Chanab29d9e2010-07-21 06:08:47 -0700376 } else {
377 // show minimonth and calendar frag
Erik9fc409f2010-07-28 11:40:47 -0700378 findViewById(R.id.mini_month).setVisibility(View.VISIBLE);
379 findViewById(R.id.calendar_list).setVisibility(View.VISIBLE);
Michael Chanab29d9e2010-07-21 06:08:47 -0700380 }
Michael Chan71d08832010-08-25 18:28:59 -0700381 } else if (event.eventType == EventType.VIEW_EVENT) {
382 EventInfoFragment fragment = new EventInfoFragment(event.id, event.startTime
383 .toMillis(false), event.endTime.toMillis(false));
384 fragment.setDialogParams(event.x, event.y);
385 fragment.show(getFragmentManager(), "EventInfoFragment");
Erikdd95df52010-08-27 09:31:18 -0700386 } else if (event.eventType == EventType.EDIT_EVENT ||
387 event.eventType == EventType.CREATE_EVENT) {
388 setMainPane(null, R.id.main_pane, ViewType.EDIT, -1, true, event);
389 // hide minimonth and calendar frag
390 findViewById(R.id.mini_month).setVisibility(View.GONE);
391 findViewById(R.id.calendar_list).setVisibility(View.GONE);
Michael Chanab29d9e2010-07-21 06:08:47 -0700392 }
393 }
394
Erik3f348f32010-08-10 13:17:19 -0700395 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700396 public void eventsChanged() {
Erik954c8712010-08-06 10:12:34 -0700397 mController.sendEvent(this, EventType.EVENTS_CHANGED, null, null, -1, ViewType.CURRENT);
Michael Chanab29d9e2010-07-21 06:08:47 -0700398 }
399
Erik3f348f32010-08-10 13:17:19 -0700400 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700401 public boolean getAllDay() {
402 return false;
403 }
404
Erik3f348f32010-08-10 13:17:19 -0700405 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700406 public long getSelectedTime() {
407 return 0;
408 }
409
Erik3f348f32010-08-10 13:17:19 -0700410 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700411 public void goTo(Time time, boolean animate) {
412 }
413
Erik3f348f32010-08-10 13:17:19 -0700414 @Override
Michael Chanab29d9e2010-07-21 06:08:47 -0700415 public void goToToday() {
416 }
Daisuke Miyakawa6d2e6f72010-09-17 10:30:54 -0700417
418 @Override
419 public boolean onQueryTextChanged(String newText) {
420 return false;
421 }
422
423 @Override
424 public boolean onSubmitQuery(String query) {
425 mController.sendEvent(
426 this, EventType.SEARCH, null, null, -1,
427 ViewType.CURRENT, query, getComponentName());
428 return false;
429 }
Michael Chan49701592010-06-30 11:04:03 -0700430}