blob: ae5b57bd96e3861c633ed3729944d24d01bfe11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package cgeo.geocaching.maps;
import cgeo.geocaching.maps.interfaces.MapActivityImpl;
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
/**
* Base class for the map activity. Delegates base class calls to the
* provider-specific implementation.
*
* @author rsudev
*
*/
public abstract class AbstractMap {
MapActivityImpl mapActivity;
protected AbstractMap(MapActivityImpl activity) {
mapActivity = activity;
}
public Resources getResources() {
return mapActivity.getResources();
}
public Activity getActivity() {
return mapActivity.getActivity();
}
public void onCreate(Bundle savedInstanceState) {
mapActivity.superOnCreate(savedInstanceState);
}
public void onResume() {
mapActivity.superOnResume();
}
public void onStop() {
mapActivity.superOnStop();
}
public void onPause() {
mapActivity.superOnPause();
}
public void onDestroy() {
mapActivity.superOnDestroy();
}
public boolean onCreateOptionsMenu(Menu menu) {
return mapActivity.superOnCreateOptionsMenu(menu);
}
public boolean onPrepareOptionsMenu(Menu menu) {
return mapActivity.superOnPrepareOptionsMenu(menu);
}
public boolean onOptionsItemSelected(MenuItem item) {
return mapActivity.superOnOptionsItemSelected(item);
}
public abstract void goHome(View view);
public abstract void goManual(View view);
public abstract void onSaveInstanceState(final Bundle outState);
}
|