Commit 90e73cc3 authored by Edward Wang's avatar Edward Wang Committed by Sébastien Toque
Browse files

Add menu option to refresh media list


Signed-off-by: Sébastien Toque's avatarSébastien Toque <xilasz@gmail.com>
parent b3f86935
......@@ -18,7 +18,11 @@
android:icon="@android:drawable/ic_menu_info_details"
android:title="@string/about" />
<item
android:title="@string/preferences"
android:id="@+id/ml_menu_preferences"
android:icon="@android:drawable/ic_menu_preferences"
android:id="@+id/ml_menu_preferences" />
android:title="@string/preferences" />
<item
android:id="@+id/ml_menu_refresh"
android:icon="@drawable/ic_menu_refresh"
android:title="@string/refresh" />
</menu>
......@@ -69,4 +69,5 @@
<string name="quit">Quit Application</string>
<string name="detect_headset">Detect headset</string>
<string name="detect_headset_detail">Pause on headset removed, Resume on headset inserted</string>
<string name="refresh">Refresh</string>
</resources>
......@@ -207,6 +207,10 @@ public class MainActivity extends TabActivity {
intent = new Intent(this, PreferencesActivity.class);
startActivity(intent);
break;
// Refresh
case R.id.ml_menu_refresh:
MediaLibrary.getInstance(this).loadMediaItems();
break;
}
return super.onOptionsItemSelected(item);
}
......
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