Merge "Files always visible, same for new window menu."

This commit is contained in:
Steve McKay
2016-01-28 23:42:34 +00:00
committed by Android (Google) Code Review
4 changed files with 1 additions and 7 deletions

View File

@@ -54,8 +54,7 @@
android:name=".LauncherActivity"
android:theme="@android:style/Theme.NoDisplay"
android:icon="@drawable/ic_files_app"
android:label="@string/files_label"
android:enabled="@bool/productivity_device">
android:label="@string/files_label">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />

View File

@@ -18,7 +18,6 @@
<!-- Allow Advanced Devices default value to be customised -->
<bool name="config_defaultAdvancedDevices">false</bool>
<bool name="productivity_device">true</bool>
<!-- Intentionally unset. Vendors should set this in an overlay. -->
<string name="trusted_quick_viewer_package"></string>
</resources>

View File

@@ -104,7 +104,6 @@ public abstract class BaseActivity extends Activity implements SearchManagerList
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
mProductivityDevice = getResources().getBoolean(R.bool.productivity_device);
mState = (icicle != null)
? icicle.<State>getParcelable(EXTRA_STATE)
: buildState();

View File

@@ -256,9 +256,6 @@ public class FilesActivity extends BaseActivity {
pasteFromCb.setEnabled(mClipper.hasItemsToPaste());
newWindow.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
newWindow.setVisible(mProductivityDevice);
Menus.disableHiddenItems(menu, pasteFromCb);
return true;
}