Skip to content

Commit 9b75f7a

Browse files
committed
Release 2.1
1 parent eadaa8c commit 9b75f7a

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ android {
99
applicationId "com.mcal.disassembler"
1010
minSdkVersion 14
1111
targetSdkVersion 29
12-
versionCode 20
13-
versionName "2.0"
12+
versionCode 21
13+
versionName "2.1"
1414
/*ndk {
1515
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
1616
}*/

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
android:label="@string/app_name"
1414
android:icon="@mipmap/ic_launcher"
1515
android:roundIcon="@mipmap/ic_launcher_round"
16-
android:name=".App"
16+
android:name="com.mcal.disassembler.App"
1717
android:largeHeap="true"
1818
android:theme="@style/AppTheme"
1919
android:allowBackup="true"

app/src/main/java/com/mcal/disassembler/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import android.annotation.SuppressLint
44
import android.app.Application
55
import android.content.Context
66
import android.content.SharedPreferences
7-
import android.preference.PreferenceManager
7+
import androidx.preference.PreferenceManager
88
import com.mcal.disassembler.data.Database
99
import org.jetbrains.annotations.Nullable
1010

app/src/main/java/com/mcal/disassembler/activities/MainActivity.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
import android.os.Bundle;
1010
import android.provider.Settings;
1111
import android.view.View;
12+
import android.widget.LinearLayout;
1213

1314
import androidx.appcompat.app.AppCompatActivity;
15+
import androidx.recyclerview.widget.LinearLayoutManager;
1416
import androidx.recyclerview.widget.RecyclerView;
1517

1618
import com.google.android.material.appbar.MaterialToolbar;
1719
import com.mcal.disassembler.R;
20+
import com.mcal.disassembler.adapters.ListAdapter;
1821
import com.mcal.disassembler.data.Database;
1922
import com.mcal.disassembler.data.RecentsManager;
2023
import com.mcal.disassembler.interfaces.MainView;
@@ -36,7 +39,6 @@ public class MainActivity extends AppCompatActivity implements MainView {
3639

3740
ProgressDialog dialog;
3841
private MaterialToolbar toolbar;
39-
//private LinearLayout welcomeLayout;
4042
private RecyclerView recentOpened;
4143
private ArrayList<String> paths = new ArrayList<>();
4244
private String path;
@@ -55,7 +57,14 @@ public void onCreate(Bundle savedInstanceState) {
5557
new Database(this);
5658
//welcomeLayout = findViewById(R.id.welcome_layout);
5759
recentOpened = findViewById(R.id.items);
58-
60+
recentOpened.setLayoutManager(new LinearLayoutManager(this));
61+
Cursor cursor = RecentsManager.getRecents();
62+
if (cursor.getCount() > 0) {
63+
while (cursor.moveToNext()) {
64+
paths.add(cursor.getString(0));
65+
}
66+
}
67+
recentOpened.setAdapter(new ListAdapter(paths, this));
5968
//setupList();
6069
}
6170

0 commit comments

Comments
 (0)