change soring order
This commit is contained in:
parent
103e7f8486
commit
0f0dde0fec
2 changed files with 8 additions and 2 deletions
|
|
@ -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')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue