File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
codec2talkie/src/main/java/com/radio/codec2talkie/storage/log Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ protected void onCreate(Bundle savedInstanceState) {
32
32
33
33
final LogItemAdapter adapter = new LogItemAdapter (new LogItemAdapter .LogItemDiff ());
34
34
recyclerView .setAdapter (adapter );
35
- recyclerView .setLayoutManager (new LinearLayoutManager (this ));
35
+ LinearLayoutManager linearLayoutManager = new LinearLayoutManager (this );
36
+ linearLayoutManager .setStackFromEnd (true );
37
+ recyclerView .setLayoutManager (linearLayoutManager );
36
38
recyclerView .addItemDecoration (new DividerItemDecoration (recyclerView .getContext (), DividerItemDecoration .VERTICAL ));
37
39
38
40
_logItemViewModel = new ViewModelProvider (this ).get (LogItemViewModel .class );
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public interface LogItemDao {
19
19
@ Query ("SELECT srcCallsign from LogItem GROUP BY srcCallsign" )
20
20
LiveData <List <String >> getGroups ();
21
21
22
- @ Query ("SELECT * FROM LogItem ORDER by timestampEpoch DESC " )
22
+ @ Query ("SELECT * FROM LogItem ORDER by timestampEpoch ASC " )
23
23
LiveData <List <LogItem >> getAllLogItems ();
24
24
25
25
@ Query ("SELECT * FROM LogItem WHERE srcCallsign = :srcCallsign ORDER BY timestampEpoch ASC" )
You can’t perform that action at this time.
0 commit comments