OSDN Git Service

Hide superfluous 'Android system' header in Quite mode dialog
authorRicky Wai <rickywai@google.com>
Wed, 15 Jun 2016 10:36:23 +0000 (11:36 +0100)
committerRicky Wai <rickywai@google.com>
Mon, 27 Jun 2016 14:05:01 +0000 (14:05 +0000)
Bug: 28390642
Change-Id: Ief678e35a0d9e4a37f4499c307ceb928e179cac8

core/java/com/android/internal/app/UnlaunchableAppActivity.java

index d24cefe..0a539f1 100644 (file)
@@ -37,6 +37,7 @@ import android.text.TextUtils;
 import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
+import android.view.Window;
 import android.widget.TextView;
 
 import com.android.internal.R;
@@ -59,6 +60,9 @@ public class UnlaunchableAppActivity extends Activity
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+        // As this activity has nothing to show, we should hide the title bar also
+        // TODO: Use AlertActivity so we don't need to hide title bar and create a dialog
+        requestWindowFeature(Window.FEATURE_NO_TITLE);
         Intent intent = getIntent();
         mReason = intent.getIntExtra(EXTRA_UNLAUNCHABLE_REASON, -1);
         mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);