Browse Source

beta release preparation + some toasts

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
fb86911324
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 6
      app/build.gradle
  2. 2
      app/src/main/java/awais/instagrabber/asyncs/DownloadAsync.java
  3. 7
      app/src/main/java/awais/instagrabber/fragments/SavedViewerFragment.java
  4. 2
      app/src/main/res/values/strings.xml

6
app/build.gradle

@ -5,13 +5,13 @@ android {
compileSdkVersion 29
defaultConfig {
applicationId 'me.austinhuang.instagrabber'
applicationId 'me.austinhuang.instagrabbr'
minSdkVersion 16
targetSdkVersion 29
versionCode 48
versionName '18.2'
versionCode 49
versionName '19.0-a1'
multiDexEnabled true

2
app/src/main/java/awais/instagrabber/asyncs/DownloadAsync.java

@ -188,7 +188,7 @@ public final class DownloadAsync extends AsyncTask<Void, Float, File> {
MediaScannerConnection.scanFile(context, new String[]{result.getAbsolutePath()}, null, 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();
Bitmap bitmap = null;

7
app/src/main/java/awais/instagrabber/fragments/SavedViewerFragment.java

@ -10,6 +10,7 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.activity.OnBackPressedCallback;
import androidx.activity.OnBackPressedDispatcher;
@ -104,8 +105,8 @@ public final class SavedViewerFragment extends Fragment implements SwipeRefreshL
private final FetchListener<PostModel[]> postsFetchListener = new FetchListener<PostModel[]>() {
@Override
public void onResult(final PostModel[] result) {
final List<PostModel> current = postsViewModel.getList().getValue();
if (result != null) {
final List<PostModel> current = postsViewModel.getList().getValue();
final List<PostModel> resultList = Arrays.asList(result);
if (current == null) {
postsViewModel.getList().postValue(resultList);
@ -131,6 +132,10 @@ public final class SavedViewerFragment extends Fragment implements SwipeRefreshL
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);
}
};

2
app/src/main/res/values/strings.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<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 [email protected] or click one of the buttons below.</string>
<string name="action_quickaccess">Quick Access</string>
<string name="action_about">About</string>

Loading…
Cancel
Save