Permalink
Browse files

Prepare for Android lint hardcoded debug mode

  • Loading branch information...
1 parent f9d3688 commit d3209ca903c1f6f6eb0e47de5b16a3f3dd8c7c5d @mhaidarh committed Mar 18, 2013
Showing with 10 additions and 9 deletions.
  1. +5 −0 AndroidManifest.xml
  2. +5 −0 lint.xml
  3. +0 −9 src/com/mhaidarhanif/android/kargu/MainActivity.java
View
5 AndroidManifest.xml
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
+
+<!--suppress AndroidLintHardcodedDebugMode -->
+
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mhaidarhanif.android.kargu"
@@ -9,6 +12,8 @@
android:minSdkVersion="10"
android:targetSdkVersion="16" />
+ <!--suppress AndroidLintHardcodedDebugMode -->
+
<application
android:debuggable="true"
android:allowBackup="true"
View
5 lint.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<lint>
+ <!-- List of issues to configure -->
+</lint>
View
9 src/com/mhaidarhanif/android/kargu/MainActivity.java
@@ -1,10 +1,8 @@
package com.mhaidarhanif.android.kargu;
-import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
-import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
@@ -36,13 +34,6 @@ protected void onCreate(Bundle savedInstanceState) {
// Initialize member TextView
mTextView = (TextView) findViewById(R.id.about_title);
-
- // Check minimum API level number to use ActionBar API
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- // Make sure app icon in action bar does not behave as a button
- ActionBar actionBar = getActionBar();
- actionBar.setHomeButtonEnabled(false);
- }
}
@Override

0 comments on commit d3209ca

Please sign in to comment.