fix sort
This commit is contained in:
parent
ba01f8003d
commit
0cb3283e54
7 changed files with 14 additions and 19 deletions
|
|
@ -112,10 +112,14 @@ public class Recordings extends ArrayAdapter<File> implements AbsListView.OnScro
|
|||
}
|
||||
}
|
||||
|
||||
sort(new SortFiles());
|
||||
sort();
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public void sort() {
|
||||
sort(new SortFiles());
|
||||
}
|
||||
|
||||
public void close() {
|
||||
if (player != null) {
|
||||
player.release();
|
||||
|
|
@ -387,7 +391,7 @@ public class Recordings extends ArrayAdapter<File> implements AbsListView.OnScro
|
|||
|
||||
final boolean playing = player != null && player.isPlaying();
|
||||
|
||||
i.setImageResource(playing ? R.drawable.ic_pause_24dp : R.drawable.ic_play_arrow_black_24dp);
|
||||
i.setImageResource(playing ? R.drawable.ic_pause_black_24dp : R.drawable.ic_play_arrow_black_24dp);
|
||||
|
||||
TextView start = (TextView) v.findViewById(R.id.recording_player_start);
|
||||
SeekBar bar = (SeekBar) v.findViewById(R.id.recording_player_seek);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class Storage {
|
|||
public static final String TMP_REC = "recorind.data";
|
||||
public static final String RECORDINGS = "recordings";
|
||||
|
||||
Context context;
|
||||
protected Context context;
|
||||
|
||||
public Storage(Context context) {
|
||||
this.context = context;
|
||||
|
|
@ -144,7 +144,7 @@ public class Storage {
|
|||
return getNextFile(parent, fileName, extension);
|
||||
}
|
||||
|
||||
File getNextFile(File parent, String name, String ext) {
|
||||
protected File getNextFile(File parent, String name, String ext) {
|
||||
String fileName;
|
||||
if (ext.isEmpty())
|
||||
fileName = name;
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FFffffff"
|
||||
android:pathData="M6,19h4V5H6v14zm8,-14v14h4V5h-4z"/>
|
||||
</vector>
|
||||
|
|
@ -32,14 +32,14 @@
|
|||
android:id="@+id/notification_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Audio Recorder"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="?android:attr/colorForeground" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notification_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Audio Recorder"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="?android:attr/textColorHint"
|
||||
android:textSize="@dimen/notification_subtext_size" />
|
||||
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
final ImageView playButton = (ImageView) box.findViewById(R.id.recording_play);
|
||||
|
||||
if (show) {
|
||||
playButton.setImageResource(R.drawable.ic_pause_24dp);
|
||||
playButton.setImageResource(R.drawable.ic_pause_black_24dp);
|
||||
|
||||
playIndex = editSample;
|
||||
|
||||
|
|
@ -563,7 +563,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
|
||||
sound.silent();
|
||||
|
||||
pause.setImageResource(R.drawable.ic_pause_24dp);
|
||||
pause.setImageResource(R.drawable.ic_pause_black_24dp);
|
||||
|
||||
pitch.record();
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ public class RecordingService extends Service {
|
|||
view.setOnClickPendingIntent(R.id.status_bar_latest_event_content, main);
|
||||
view.setTextViewText(R.id.notification_text, ".../" + targetFile);
|
||||
view.setOnClickPendingIntent(R.id.notification_pause, pe);
|
||||
view.setImageViewResource(R.id.notification_pause, !recording ? R.drawable.ic_play_arrow_black_24dp : R.drawable.ic_pause_24dp);
|
||||
view.setImageViewResource(R.id.notification_pause, !recording ? R.drawable.ic_play_arrow_black_24dp : R.drawable.ic_pause_black_24dp);
|
||||
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
|
||||
.setOngoing(true)
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="?attr/roundButton"
|
||||
android:src="@drawable/ic_pause_24dp" />
|
||||
android:src="@drawable/ic_pause_black_24dp" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/recording_done"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue