change soring order

This commit is contained in:
Alexey Kuznetsov 2017-04-03 12:03:29 +03:00
commit 0f0dde0fec
2 changed files with 8 additions and 2 deletions

View file

@ -43,5 +43,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.github.axet:android-audio-library:0.0.19' // compile project(':android-audio-library')
compile 'com.github.axet:android-audio-library:0.0.20' // compile project(':android-audio-library')
}

View file

@ -33,6 +33,7 @@ import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.common.api.GoogleApiClient;
import java.io.File;
import java.util.Collections;
public class MainActivity extends AppCompatActivity {
public final static String TAG = MainActivity.class.getSimpleName();
@ -95,7 +96,12 @@ public class MainActivity extends AppCompatActivity {
});
list = (ListView) findViewById(R.id.list);
recordings = new Recordings(this, list);
recordings = new Recordings(this, list) {
@Override
public void sort() {
sort(Collections.reverseOrder(new SortFiles()));
}
};
list.setAdapter(recordings);
list.setEmptyView(findViewById(R.id.empty_list));