beta release preparation + some toasts
This commit is contained in:
parent
ccfaa1c397
commit
fb86911324
@ -5,13 +5,13 @@ android {
|
|||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId 'me.austinhuang.instagrabber'
|
applicationId 'me.austinhuang.instagrabbr'
|
||||||
|
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 48
|
versionCode 49
|
||||||
versionName '18.2'
|
versionName '19.0-a1'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ public final class DownloadAsync extends AsyncTask<Void, Float, File> {
|
|||||||
MediaScannerConnection.scanFile(context, new String[]{result.getAbsolutePath()}, null, null);
|
MediaScannerConnection.scanFile(context, new String[]{result.getAbsolutePath()}, null, null);
|
||||||
|
|
||||||
if (notificationManager != null) {
|
if (notificationManager != null) {
|
||||||
final Uri uri = FileProvider.getUriForFile(context, "me.austinhuang.instagrabber.provider", result);
|
final Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".provider", result);
|
||||||
|
|
||||||
final ContentResolver contentResolver = context.getContentResolver();
|
final ContentResolver contentResolver = context.getContentResolver();
|
||||||
Bitmap bitmap = null;
|
Bitmap bitmap = null;
|
||||||
|
@ -10,6 +10,7 @@ import android.view.MenuItem;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.activity.OnBackPressedCallback;
|
import androidx.activity.OnBackPressedCallback;
|
||||||
import androidx.activity.OnBackPressedDispatcher;
|
import androidx.activity.OnBackPressedDispatcher;
|
||||||
@ -104,8 +105,8 @@ public final class SavedViewerFragment extends Fragment implements SwipeRefreshL
|
|||||||
private final FetchListener<PostModel[]> postsFetchListener = new FetchListener<PostModel[]>() {
|
private final FetchListener<PostModel[]> postsFetchListener = new FetchListener<PostModel[]>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResult(final PostModel[] result) {
|
public void onResult(final PostModel[] result) {
|
||||||
|
final List<PostModel> current = postsViewModel.getList().getValue();
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
final List<PostModel> current = postsViewModel.getList().getValue();
|
|
||||||
final List<PostModel> resultList = Arrays.asList(result);
|
final List<PostModel> resultList = Arrays.asList(result);
|
||||||
if (current == null) {
|
if (current == null) {
|
||||||
postsViewModel.getList().postValue(resultList);
|
postsViewModel.getList().postValue(resultList);
|
||||||
@ -131,6 +132,10 @@ public final class SavedViewerFragment extends Fragment implements SwipeRefreshL
|
|||||||
model.setPageCursor(false, null);
|
model.setPageCursor(false, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (current == null) {
|
||||||
|
Toast.makeText(requireContext(), R.string.empty_list, Toast.LENGTH_SHORT).show();
|
||||||
|
NavHostFragment.findNavController(SavedViewerFragment.this).popBackStack();
|
||||||
|
}
|
||||||
binding.swipeRefreshLayout.setRefreshing(false);
|
binding.swipeRefreshLayout.setRefreshing(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name" translatable="false">InstaGrabber</string>
|
<string name="app_name" translatable="false">InstaGrabber alpha</string>
|
||||||
<string name="description">The original maintainer, AWAiS, made InstaGrabber as a small and basic little personal app with intentions of [steali-]downloading posts off Instagram. Very unfortunately, this was abandoned and me, Austin Huang, took over the ship. [Let\'s hope that\'s at least a lil\' bit cash money.] After all, this app is fully open source, ad-less, and tracking-less [aside from what Instagram knows]. Even if you don\'t care about downloading stuff [like me], it\'s still a great Instagram client to use!\n\nGot questions [or just wanna talk]? Contact instagrabber@austinhuang.me or click one of the buttons below.</string>
|
<string name="description">The original maintainer, AWAiS, made InstaGrabber as a small and basic little personal app with intentions of [steali-]downloading posts off Instagram. Very unfortunately, this was abandoned and me, Austin Huang, took over the ship. [Let\'s hope that\'s at least a lil\' bit cash money.] After all, this app is fully open source, ad-less, and tracking-less [aside from what Instagram knows]. Even if you don\'t care about downloading stuff [like me], it\'s still a great Instagram client to use!\n\nGot questions [or just wanna talk]? Contact instagrabber@austinhuang.me or click one of the buttons below.</string>
|
||||||
<string name="action_quickaccess">Quick Access</string>
|
<string name="action_quickaccess">Quick Access</string>
|
||||||
<string name="action_about">About</string>
|
<string name="action_about">About</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user