Commit 491f248c authored by Geoffrey Métais's avatar Geoffrey Métais

Proxy activity for consistent launch

parent addb15c5
......@@ -34,9 +34,7 @@
tools:node="replace"
android:enabled="false"/>
<activity
android:name="org.videolan.vlc.gui.tv.MainTvActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Leanback" >
android:name="org.videolan.vlc.gui.tv.StartActivity">
<intent-filter android:priority="5" >
<action android:name="android.intent.action.MAIN" />
......@@ -44,6 +42,11 @@
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="org.videolan.vlc.gui.tv.MainTvActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:theme="@style/Theme.Leanback" />
<activity
android:name="org.videolan.vlc.gui.tv.DetailsActivity"
android:exported="true"
......
/*
* *************************************************************************
* StartActivity.java
* **************************************************************************
* Copyright © 2015 VLC authors and VideoLAN
* Author: Geoffrey Métais
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* ***************************************************************************
*/
package org.videolan.vlc.gui.tv;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import org.videolan.vlc.gui.video.VideoPlayerActivity;
public class StartActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(new Intent(this, MainTvActivity.class));
finish();
return;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment