blob: d1e6b09d72c5902a2a7276fd79e890d078fd6c59 (
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
|
package cgeo.geocaching.activity;
import android.os.Bundle;
import android.view.View;
/**
* Classes actually having an ActionBar (as opposed to the Dialog activities)
*/
public class AbstractActionBarActivity extends AbstractActivity {
@Override
protected void onCreate(final Bundle savedInstanceState, final int resourceLayoutID) {
super.onCreate(savedInstanceState, resourceLayoutID);
initUpAction();
showProgress(false);
}
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initUpAction();
showProgress(false);
}
private void initUpAction() {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
@Override
public void setTitle(final CharSequence title) {
super.setTitle(title);
// reflect the title in the actionbar
ActivityMixin.setTitle(this, title);
}
/**
* @param view
* view to activate the context ActionBar for
*/
public void addContextMenu(final View view) {
// placeholder for derived implementations
}
}
|