Skip to content

Commit

Permalink
Use application-wide NoTitleBar theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleh committed Jan 12, 2012
1 parent cae6af1 commit dca77cc
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="10"/>

<application android:icon="@drawable/icon" android:label="@string/app_name"
android:name="LastFMApplication" android:installLocation="internalOnly">
android:name="LastFMApplication" android:installLocation="internalOnly"
android:theme="@android:style/Theme.NoTitleBar">
<activity android:name="LastFm" android:configChanges="keyboardHidden">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/LastFm.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public class LastFm extends Activity {
public void onCreate(Bundle icicle) {

super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
SharedPreferences settings = getSharedPreferences(PREFS, 0);
String user = settings.getString("lastfm_user", "");
String session_key = settings.getString("lastfm_session_key", "");
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ private static int statusToResource(int status) {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.event);

mTitle = (TextView) findViewById(R.id.title);
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/Help.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class Help extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.help);

mWebView = (WebView) findViewById(R.id.webview);
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/Metadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public Metadata() {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.metadata);

if(getIntent().getData() != null) {
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public class Player extends Activity {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.audio_player);
setVolumeControlStream(android.media.AudioManager.STREAM_MUSIC);
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public void onCreate(Bundle icicle) {
boolean isAuthenticatedUser = false;

super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.home);
Session session = LastFMApplication.getInstance().session;
if (session == null || session.getName() == null || (Integer.decode(Build.VERSION.SDK) >= 6 && !AccountAuthenticatorService.hasLastfmAccount(this))) {
Expand Down
1 change: 0 additions & 1 deletion app/src/fm/last/android/activity/SignUp.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void onClick(View v) {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.signup);

mUsername = (TextView) findViewById(R.id.username);
Expand Down

0 comments on commit dca77cc

Please sign in to comment.