Skip to content

Commit

Permalink
ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
6eero committed Apr 17, 2024
1 parent e9cea25 commit bd15897
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.Toast;

import com.gero.newpass.R;
import com.gero.newpass.SharedPreferences.SharedPreferencesHelper;
Expand Down Expand Up @@ -111,18 +112,22 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
VibrationHelper.vibrate(requireContext(), getResources().getInteger(R.integer.vibration_duration1));

//TODO: export database -> open file manager exporting db as "password.db" and let the user saves it
Toast.makeText(getActivity(), "Coming soon", Toast.LENGTH_LONG).show();
});

IVImport.setOnClickListener(v -> {

VibrationHelper.vibrate(requireContext(), getResources().getInteger(R.integer.vibration_duration1));

//TODO: import database -> open file manager and let the user pick a .db
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
intent.addCategory(Intent.CATEGORY_OPENABLE);

startActivityForResult(Intent.createChooser(intent, "Select File"), PICK_FILE_REQUEST_CODE);
// Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
// intent.setType("*/*");
// intent.addCategory(Intent.CATEGORY_OPENABLE);
//
// startActivityForResult(Intent.createChooser(intent, "Select File"), PICK_FILE_REQUEST_CODE);
Toast.makeText(getActivity(), "Coming soon", Toast.LENGTH_LONG).show();


});
}
Expand Down

0 comments on commit bd15897

Please sign in to comment.