This stuff has to be done before content gets added. Move into

Activity for now, though this may not work in dual-pane mode.
This commit is contained in:
Eric House 2016-04-09 12:23:26 -07:00
parent 8c9e3ce14c
commit 3dd69d90d9
2 changed files with 4 additions and 5 deletions

View file

@ -30,6 +30,9 @@ public class DwnldActivity extends XWActivity {
protected void onCreate( Bundle savedInstanceState )
{
requestWindowFeature( Window.FEATURE_NO_TITLE );
requestWindowFeature( Window.FEATURE_LEFT_ICON );
getWindow().setFeatureDrawableResource( Window.FEATURE_LEFT_ICON,
R.drawable.icon48x48 );
DwnldDelegate dlgt =
new DwnldDelegate( this, savedInstanceState );

View file

@ -249,10 +249,6 @@ public class DwnldDelegate extends ListDelegateBase {
Uri[] uris = null;
LinearLayout item = null;
requestWindowFeature( Window.FEATURE_LEFT_ICON );
m_activity.getWindow().setFeatureDrawableResource( Window.FEATURE_LEFT_ICON,
R.drawable.icon48x48 );
Intent intent = getIntent();
Uri uri = intent.getData(); // launched from Manifest case
if ( null == uri ) {