Peertube improvements

This commit is contained in:
stom79 2018-10-22 09:37:51 +02:00
parent a9c7935232
commit 8a01ea773f
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public class FullScreenMediaController extends MediaController {
}else{
((PeertubeActivity)getContext()).setFullscreen(fullscreen.ON);
}
((PeertubeActivity)getContext()).change();
changeIcon();
}
});

View File

@ -98,7 +98,7 @@ public class InstancesDAO {
*/
public List<RemoteInstance> getAllInstances(){
try {
Cursor c = db.query(Sqlite.TABLE_INSTANCES, null, Sqlite.COL_USER_ID + " = '" + userId+ "'", null, null, null, Sqlite.COL_INSTANCE + " ASC", null);
Cursor c = db.query(Sqlite.TABLE_INSTANCES, null, Sqlite.COL_USER_ID + " = '" + userId+ "'", null, null, null, Sqlite.COL_INSTANCE_TYPE + " ASC, "+Sqlite.COL_INSTANCE + " ASC", null);
return cursorToListSearch(c);
} catch (Exception e) {
return null;