[Android] Hint for TV directories selection
Geoffrey Métais
git at videolan.org
Tue Feb 28 11:26:47 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 28 11:26:09 2017 +0100| [f4e5be74d8e4f9e4fb9d4e74f57fff9efc5d5e2a] | committer: Geoffrey Métais
Hint for TV directories selection
> https://code.videolan.org/videolan/vlc-android/commit/f4e5be74d8e4f9e4fb9d4e74f57fff9efc5d5e2a
---
vlc-android/res/values/strings.xml | 1 +
vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java | 3 +++
2 files changed, 4 insertions(+)
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 4f88bfd..3084d9c 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -695,6 +695,7 @@
<string name="ml_discovering">Discovering</string>
<string name="resume">Resume</string>
<string name="length">Length</string>
+ <string name="tv_settings_hint">Long press OK button to check/uncheck directories</string>
<string-array name="chroma_formats" translatable="false">
<item>RGB 32-bit</item>
diff --git a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
index 42aa6c5..b782842 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
@@ -25,6 +25,7 @@ package org.videolan.vlc.gui;
import android.content.Intent;
import android.os.Bundle;
+import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.view.Menu;
import android.view.MenuItem;
@@ -76,6 +77,8 @@ public class SecondaryActivity extends AudioPlayerContainerActivity {
getSupportFragmentManager().beginTransaction()
.add(R.id.fragment_placeholder, mFragment)
.commit();
+ if (VLCApplication.showTvUi() && STORAGE_BROWSER.equals(fragmentId))
+ Snackbar.make(getWindow().getDecorView(), R.string.tv_settings_hint, Snackbar.LENGTH_LONG).show();
}
if (VLCApplication.showTvUi())
More information about the Android
mailing list