OSDN Git Service

Make the support loader activity display UI.
authorDaniel Nishi <dhnishi@google.com>
Mon, 17 Jul 2017 19:49:04 +0000 (12:49 -0700)
committerDaniel Nishi <dhnishi@google.com>
Mon, 17 Jul 2017 19:49:04 +0000 (12:49 -0700)
This lets us show a loader before jumping into the support UI.

Bug: 63117391
Test: Manual
Change-Id: Ie9660f7e89cc02d59e24798f22ca9cd0ef11701d

AndroidManifest.xml
src/com/android/settings/support/SupportDashboardActivity.java

index 0c4e25b..4e3f0a5 100644 (file)
         <activity android:name=".support.SupportDashboardActivity"
                   android:label="@string/page_tab_title_support"
                   android:icon="@drawable/ic_help"
-                  android:theme="@android:style/Theme.NoDisplay"
+                  android:theme="@android:style/Theme.DeviceDefault.Light.Panel"
                   android:enabled="@bool/config_support_enabled">
             <intent-filter android:priority="-2">
                 <action android:name="com.android.settings.action.SETTINGS"/>
index d3fcf9a..819d5f7 100644 (file)
@@ -47,8 +47,8 @@ public class SupportDashboardActivity extends Activity implements Indexable {
             supportFeatureProvider.startSupportV2(this);
         } else {
             startActivity(new Intent(this, LegacySupportActivity.class));
+            finish();
         }
-        finish();
     }
 
     /**